Spaces:
Sleeping
Sleeping
MohammedNasser
commited on
Commit
•
b8616b2
1
Parent(s):
315b5a1
Update app.py
Browse files
app.py
CHANGED
@@ -217,7 +217,7 @@ def chat(user_input):
|
|
217 |
audio_file = f"{audio_id}.mp3"
|
218 |
tts.save(audio_file)
|
219 |
|
220 |
-
history_display = [(h["
|
221 |
return history_display, audio_file
|
222 |
|
223 |
with gr.Blocks(css=custom_css) as demo:
|
|
|
217 |
audio_file = f"{audio_id}.mp3"
|
218 |
tts.save(audio_file)
|
219 |
|
220 |
+
history_display = [(h["role"],h["content"]) for h in chathistory]
|
221 |
return history_display, audio_file
|
222 |
|
223 |
with gr.Blocks(css=custom_css) as demo:
|