Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -112,11 +112,11 @@ with gr.Blocks() as demo:
|
|
112 |
|
113 |
pdf_upload.upload(fn=render_first, inputs=[pdf_upload], outputs=[show_img])
|
114 |
# Event handler for submitting text and generating response
|
115 |
-
submit_btn.click(
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
).success(
|
121 |
fn=generate_response,
|
122 |
inputs=[chatbot, txt, btn],
|
|
|
112 |
|
113 |
pdf_upload.upload(fn=render_first, inputs=[pdf_upload], outputs=[show_img])
|
114 |
# Event handler for submitting text and generating response
|
115 |
+
submit_btn.click(
|
116 |
+
fn=add_text,
|
117 |
+
inputs=[chatbot, txt],
|
118 |
+
outputs=[chatbot],
|
119 |
+
queue=False
|
120 |
).success(
|
121 |
fn=generate_response,
|
122 |
inputs=[chatbot, txt, btn],
|