Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ with st.container():
|
|
| 99 |
txt = gr.Textbox(label="Enter your query", placeholder="Ask a question...")
|
| 100 |
submit_btn = gr.Button('Submit')
|
| 101 |
|
| 102 |
-
@submit_btn.
|
| 103 |
def on_submit():
|
| 104 |
add_text(chatbot, txt)
|
| 105 |
generate_response(chatbot, txt, pdf_upload1)
|
|
@@ -111,7 +111,8 @@ if __name__ == "__main__":
|
|
| 111 |
[pdf_upload1, chatbot, txt, pdf_upload2, pdf_upload3],
|
| 112 |
[show_img, chatbot, txt],
|
| 113 |
title="PDF-Powered Chatbot"
|
| 114 |
-
).launch()
|
|
|
|
| 115 |
|
| 116 |
|
| 117 |
|
|
|
|
| 99 |
txt = gr.Textbox(label="Enter your query", placeholder="Ask a question...")
|
| 100 |
submit_btn = gr.Button('Submit')
|
| 101 |
|
| 102 |
+
@submit_btn.click()
|
| 103 |
def on_submit():
|
| 104 |
add_text(chatbot, txt)
|
| 105 |
generate_response(chatbot, txt, pdf_upload1)
|
|
|
|
| 111 |
[pdf_upload1, chatbot, txt, pdf_upload2, pdf_upload3],
|
| 112 |
[show_img, chatbot, txt],
|
| 113 |
title="PDF-Powered Chatbot"
|
| 114 |
+
).launch()
|
| 115 |
+
|
| 116 |
|
| 117 |
|
| 118 |
|