Update app.py
Browse files
app.py
CHANGED
@@ -445,11 +445,11 @@ with gr.Blocks() as demo:
|
|
445 |
)
|
446 |
btn = gr.UploadButton("📁", file_types=["image", "video", "audio"])
|
447 |
|
448 |
-
txt_msg = txt.submit(invoke, [
|
449 |
txt_msg.then(lambda: gr.Textbox(interactive=True), None, [prompt], queue=False)
|
450 |
-
file_msg = btn.upload(add_file, [
|
451 |
|
452 |
-
chatbot_stream.like(print_like_dislike, None, None)
|
453 |
|
454 |
|
455 |
"""
|
|
|
445 |
)
|
446 |
btn = gr.UploadButton("📁", file_types=["image", "video", "audio"])
|
447 |
|
448 |
+
txt_msg = txt.submit(invoke, [chat_interface_stream, prompt], [chat_interface_stream, prompt], queue=False).then(bot, chat_interface_stream, chat_interface_stream, api_name="bot_response")
|
449 |
txt_msg.then(lambda: gr.Textbox(interactive=True), None, [prompt], queue=False)
|
450 |
+
file_msg = btn.upload(add_file, [chat_interface_stream, btn], [chat_interface_stream], queue=False).then(bot, chat_interface_stream, chat_interface_stream)
|
451 |
|
452 |
+
#chatbot_stream.like(print_like_dislike, None, None)
|
453 |
|
454 |
|
455 |
"""
|