arpit13 commited on
Commit
46facc0
·
verified ·
1 Parent(s): f17ef40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 # Output the file to the audio player
 
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)