rafaa commited on
Commit
8af1c8c
·
verified ·
1 Parent(s): d8f040b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(value=lastAudio, autoplay=True, interactive=False)
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)