Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -174,7 +174,8 @@ with gr.Blocks(css="""
|
|
| 174 |
hear_button.click(
|
| 175 |
lambda latest: text_to_speech(latest[-1][1] if latest else ""), # Fetch latest bot response
|
| 176 |
inputs=[history_state], # Pass the conversation history
|
| 177 |
-
outputs=audio_output
|
|
|
|
| 178 |
|
| 179 |
# Clear history button action
|
| 180 |
clear_button.click(clear_conversation_history, inputs=None, outputs=system_message)
|
|
|
|
| 174 |
hear_button.click(
|
| 175 |
lambda latest: text_to_speech(latest[-1][1] if latest else ""), # Fetch latest bot response
|
| 176 |
inputs=[history_state], # Pass the conversation history
|
| 177 |
+
outputs=audio_output # Output the file to the audio player
|
| 178 |
+
)
|
| 179 |
|
| 180 |
# Clear history button action
|
| 181 |
clear_button.click(clear_conversation_history, inputs=None, outputs=system_message)
|