Nikhil0987 commited on
Commit
05d137c
·
verified ·
1 Parent(s): b04efeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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.capture()
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