ylacombe commited on
Commit
dd0934b
1 Parent(s): 8166583

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -194,6 +194,8 @@ with gr.Blocks(title=title) as demo:
194
  bot, chatbot, chatbot
195
  ).then(generate_speech, chatbot, audio)
196
 
 
 
197
  txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
198
  bot, chatbot, chatbot
199
  ).then(generate_speech, chatbot, audio)
 
194
  bot, chatbot, chatbot
195
  ).then(generate_speech, chatbot, audio)
196
 
197
+ txt_msg.then(lambda: gr.update(interactive=True), None, [txt], queue=False)
198
+
199
  txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
200
  bot, chatbot, chatbot
201
  ).then(generate_speech, chatbot, audio)