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