Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1607,8 +1607,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
1607 |
# )
|
1608 |
|
1609 |
retriever_sequence = (
|
1610 |
-
retriever_button.click(fn=
|
1611 |
-
.then(fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input], api_name="api_addprompt_chathistory")
|
1612 |
# First, generate the bot response
|
1613 |
.then(fn=generate_bot_response, inputs=[chatbot, choice, retrieval_mode, model_choice], outputs=[chatbot], api_name="api_generate_bot_response")
|
1614 |
.then(fn=clear_textbox, inputs=[], outputs=[chat_input], api_name="api_clear_textbox")
|
@@ -1634,7 +1633,7 @@ with gr.Blocks(theme='gradio/soft') as demo:
|
|
1634 |
# fn=clear_textbox, inputs=[], outputs=[chat_input], api_name="api_clear_textbox"
|
1635 |
# )
|
1636 |
|
1637 |
-
chat_input.submit(
|
1638 |
fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input], api_name="api_addprompt_chathistory"
|
1639 |
).then(
|
1640 |
# First, generate the bot response
|
|
|
1607 |
# )
|
1608 |
|
1609 |
retriever_sequence = (
|
1610 |
+
retriever_button.click(fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input], api_name="api_addprompt_chathistory")
|
|
|
1611 |
# First, generate the bot response
|
1612 |
.then(fn=generate_bot_response, inputs=[chatbot, choice, retrieval_mode, model_choice], outputs=[chatbot], api_name="api_generate_bot_response")
|
1613 |
.then(fn=clear_textbox, inputs=[], outputs=[chat_input], api_name="api_clear_textbox")
|
|
|
1633 |
# fn=clear_textbox, inputs=[], outputs=[chat_input], api_name="api_clear_textbox"
|
1634 |
# )
|
1635 |
|
1636 |
+
chat_input.submit(
|
1637 |
fn=add_message, inputs=[chatbot, chat_input], outputs=[chatbot, chat_input], api_name="api_addprompt_chathistory"
|
1638 |
).then(
|
1639 |
# First, generate the bot response
|