Update app.py
Browse files
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 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
# Connect submit button to text_extract function
|
59 |
-
|
60 |
|
61 |
# Connect send button to chatbot_response function
|
62 |
send_btn.click(chatbot_response, inputs=user_input, outputs=output)
|
|
|
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=output)
|
60 |
|
61 |
# Connect send button to chatbot_response function
|
62 |
send_btn.click(chatbot_response, inputs=user_input, outputs=output)
|