Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,8 +109,8 @@ with gr.Blocks() as demo:
|
|
| 109 |
state = gr.State([])
|
| 110 |
|
| 111 |
file_input.change(upload_pdf, inputs=[file_input], outputs=[status])
|
| 112 |
-
msg.submit(ask_question, [msg, state], [chatbot, state])
|
| 113 |
-
clear.click(lambda: ([],[]), None, [chatbot, state
|
| 114 |
chain = None # global QA chain
|
| 115 |
|
| 116 |
# Launch the app
|
|
|
|
| 109 |
state = gr.State([])
|
| 110 |
|
| 111 |
file_input.change(upload_pdf, inputs=[file_input], outputs=[status])
|
| 112 |
+
msg.submit(ask_question, [msg, state], [chatbot, state, msg])
|
| 113 |
+
clear.click(lambda: ([],[]), None, [chatbot, state])
|
| 114 |
chain = None # global QA chain
|
| 115 |
|
| 116 |
# Launch the app
|