chatbytes commited on
Commit
4c26c8e
·
verified ·
1 Parent(s): 0308cfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -51,12 +51,12 @@ with gr.Blocks() as demo:
51
  with gr.Column():
52
  user_input = gr.Textbox(show_label=False, placeholder="Type your message here...")
53
  send_btn = gr.Button("Send")
54
- with gr.Column():
55
- input_file = gr.File(label="Upload PDF", file_count="single")
56
- submit_btn = gr.Button("Submit")
57
 
58
  # Connect submit button to text_extract function
59
- submit_btn.click(text_extract, inputs=[input_file], outputs=[user_input])
60
 
61
  # Connect send button to chatbot_response function
62
  send_btn.click(chatbot_response, inputs=[user_input, state], outputs=[chatbot, state])
 
51
  with gr.Column():
52
  user_input = gr.Textbox(show_label=False, placeholder="Type your message here...")
53
  send_btn = gr.Button("Send")
54
+ # with gr.Column():
55
+ # input_file = gr.File(label="Upload PDF", file_count="single")
56
+ # submit_btn = gr.Button("Submit")
57
 
58
  # Connect submit button to text_extract function
59
+ # submit_btn.click(text_extract, inputs=[input_file], outputs=[user_input])
60
 
61
  # Connect send button to chatbot_response function
62
  send_btn.click(chatbot_response, inputs=[user_input, state], outputs=[chatbot, state])