Update app.py
Browse files
app.py
CHANGED
|
@@ -100,6 +100,7 @@ def upload_pdf(file):
|
|
| 100 |
|
| 101 |
with gr.Blocks() as demo:
|
| 102 |
btn = gr.UploadButton("📁 Upload a PDF", file_types=[".pdf"])
|
|
|
|
| 103 |
chatbot = gr.Chatbot(value=[], elem_id="chatbot")
|
| 104 |
with gr.Row():
|
| 105 |
with gr.Column(scale=0.70):
|
|
@@ -111,7 +112,7 @@ with gr.Blocks() as demo:
|
|
| 111 |
|
| 112 |
# Event handler for uploading a PDF
|
| 113 |
|
| 114 |
-
btn.upload(fn=upload_pdf, inputs=[btn], outputs=[
|
| 115 |
|
| 116 |
|
| 117 |
|
|
|
|
| 100 |
|
| 101 |
with gr.Blocks() as demo:
|
| 102 |
btn = gr.UploadButton("📁 Upload a PDF", file_types=[".pdf"])
|
| 103 |
+
output = gr.Textbox(label="Output Box")
|
| 104 |
chatbot = gr.Chatbot(value=[], elem_id="chatbot")
|
| 105 |
with gr.Row():
|
| 106 |
with gr.Column(scale=0.70):
|
|
|
|
| 112 |
|
| 113 |
# Event handler for uploading a PDF
|
| 114 |
|
| 115 |
+
btn.upload(fn=upload_pdf, inputs=[btn], outputs=[output])
|
| 116 |
|
| 117 |
|
| 118 |
|