Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,9 @@ with gr.Blocks() as demo:
|
|
| 86 |
with gr.Sidebar():
|
| 87 |
gr.LoginButton()
|
| 88 |
pdf_upload = gr.File(label="Upload PDF", file_types=[".pdf"])
|
| 89 |
-
|
|
|
|
|
|
|
| 90 |
chatbot.render()
|
| 91 |
|
| 92 |
|
|
|
|
| 86 |
with gr.Sidebar():
|
| 87 |
gr.LoginButton()
|
| 88 |
pdf_upload = gr.File(label="Upload PDF", file_types=[".pdf"])
|
| 89 |
+
status = gr.Textbox(label="Status", interactive=False)
|
| 90 |
+
pdf_upload.upload(process_pdf, inputs=pdf_upload, outputs=status)
|
| 91 |
+
|
| 92 |
chatbot.render()
|
| 93 |
|
| 94 |
|