rafaa commited on
Commit
dc62751
·
verified ·
1 Parent(s): a38a940

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -172,7 +172,7 @@ with gr.ChatInterface(
172
  undo_btn=None,
173
  additional_inputs=[passwordInput],
174
  ) as chat:
175
- audioBlock = gr.Audio(value=lastAudio, autoplay=True, interactive=False)
176
 
177
 
178
  chat.launch(show_api=False)
 
172
  undo_btn=None,
173
  additional_inputs=[passwordInput],
174
  ) as chat:
175
+ audioBlock = gr.Audio(value=lambda: chat.outputs[-1][1], autoplay=True, interactive=False)
176
 
177
 
178
  chat.launch(show_api=False)