Spaces:
Runtime error
Runtime error
Update app.py (#10)
Browse files- Update app.py (e8492075b76fbe366d929b367807e189555babac)
Co-authored-by: Rifky Bujana Bisri <[email protected]>
app.py
CHANGED
@@ -278,17 +278,17 @@ def main():
|
|
278 |
|
279 |
txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|
280 |
bot, chatbot, chatbot
|
281 |
-
)
|
|
|
282 |
None, [], [], queue=False, _js=js_audio_auto_play
|
283 |
)
|
284 |
-
txt_msg.then(lambda: gr.update(interactive=True), None, [txt], queue=False)
|
285 |
|
286 |
audio_msg = audio.change(add_audio, [chatbot, audio], [chatbot, audio], queue=False, preprocess=False, postprocess=False).then(
|
287 |
bot, chatbot, chatbot
|
288 |
-
)
|
|
|
289 |
None, [], [], queue=False, _js=js_audio_auto_play
|
290 |
)
|
291 |
-
audio_msg.then(lambda: gr.update(interactive=True, value=None), None, [audio], queue=False)
|
292 |
|
293 |
reset_button.click(reset_chat_session, [chatbot], [chatbot], queue=False)
|
294 |
|
|
|
278 |
|
279 |
txt_msg = txt.submit(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|
280 |
bot, chatbot, chatbot
|
281 |
+
)
|
282 |
+
txt_msg.then(lambda: gr.update(interactive=True), None, [txt], queue=False).then(
|
283 |
None, [], [], queue=False, _js=js_audio_auto_play
|
284 |
)
|
|
|
285 |
|
286 |
audio_msg = audio.change(add_audio, [chatbot, audio], [chatbot, audio], queue=False, preprocess=False, postprocess=False).then(
|
287 |
bot, chatbot, chatbot
|
288 |
+
)
|
289 |
+
audio_msg.then(lambda: gr.update(interactive=True, value=None), None, [audio], queue=False).then(
|
290 |
None, [], [], queue=False, _js=js_audio_auto_play
|
291 |
)
|
|
|
292 |
|
293 |
reset_button.click(reset_chat_session, [chatbot], [chatbot], queue=False)
|
294 |
|