Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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)
|