Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,12 +97,14 @@ with gr.Blocks(theme="rawrsor1/Everforest") as app:
|
|
| 97 |
question_input.submit(
|
| 98 |
rag_chain_response, # Function to handle input and generate response
|
| 99 |
inputs=[chatbot, question_input], # Pass current conversation state and user input
|
| 100 |
-
outputs=[chatbot, question_input] # Update conversation state and clear the input
|
|
|
|
| 101 |
)
|
| 102 |
submit_btn.click(
|
| 103 |
rag_chain_response, # Function to handle input and generate response
|
| 104 |
inputs=[chatbot, question_input], # Pass current conversation state and user input
|
| 105 |
-
outputs=[chatbot, question_input] # Update conversation state and clear the input
|
|
|
|
| 106 |
)
|
| 107 |
|
| 108 |
# Launch the Gradio app
|
|
|
|
| 97 |
question_input.submit(
|
| 98 |
rag_chain_response, # Function to handle input and generate response
|
| 99 |
inputs=[chatbot, question_input], # Pass current conversation state and user input
|
| 100 |
+
outputs=[chatbot, question_input], # Update conversation state and clear the input
|
| 101 |
+
api_name="api_get_response_on_enter"
|
| 102 |
)
|
| 103 |
submit_btn.click(
|
| 104 |
rag_chain_response, # Function to handle input and generate response
|
| 105 |
inputs=[chatbot, question_input], # Pass current conversation state and user input
|
| 106 |
+
outputs=[chatbot, question_input], # Update conversation state and clear the input
|
| 107 |
+
api_name="api_get_response_on_submit_button"
|
| 108 |
)
|
| 109 |
|
| 110 |
# Launch the Gradio app
|