Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -156,7 +156,7 @@ def generate_text(
|
|
156 |
else:
|
157 |
print("Not using TTS!")
|
158 |
|
159 |
-
return output
|
160 |
|
161 |
|
162 |
|
@@ -172,7 +172,7 @@ with gr.ChatInterface(
|
|
172 |
undo_btn=None,
|
173 |
additional_inputs=[passwordInput],
|
174 |
) as chat:
|
175 |
-
audioBlock = gr.Audio(
|
176 |
|
177 |
|
178 |
chat.launch(show_api=False)
|
|
|
156 |
else:
|
157 |
print("Not using TTS!")
|
158 |
|
159 |
+
return output, lastAudio
|
160 |
|
161 |
|
162 |
|
|
|
172 |
undo_btn=None,
|
173 |
additional_inputs=[passwordInput],
|
174 |
) as chat:
|
175 |
+
audioBlock = gr.Audio( autoplay=True, interactive=False)
|
176 |
|
177 |
|
178 |
chat.launch(show_api=False)
|