Update app.py
Browse files
app.py
CHANGED
@@ -131,13 +131,11 @@ def gradio_interface():
|
|
131 |
with gr.Tab("Upload Documents"):
|
132 |
gr.Markdown("Upload PDF, Excel, CSV, DOC/DOCX, or TXT files below:")
|
133 |
# The file upload widget: we specify allowed file types.
|
134 |
-
|
135 |
label="Upload Files",
|
136 |
file_count="multiple",
|
137 |
file_types=[".pdf", ".csv", ".txt", ".xlsx", ".xls", ".doc", ".docx"],
|
138 |
-
type="filepath"
|
139 |
-
|
140 |
-
)
|
141 |
upload_status = gr.Textbox(label="Upload Status", interactive=False)
|
142 |
upload_button = gr.Button("Process Upload")
|
143 |
|
|
|
131 |
with gr.Tab("Upload Documents"):
|
132 |
gr.Markdown("Upload PDF, Excel, CSV, DOC/DOCX, or TXT files below:")
|
133 |
# The file upload widget: we specify allowed file types.
|
134 |
+
file_upload = gr.File(
|
135 |
label="Upload Files",
|
136 |
file_count="multiple",
|
137 |
file_types=[".pdf", ".csv", ".txt", ".xlsx", ".xls", ".doc", ".docx"],
|
138 |
+
type="filepath" )
|
|
|
|
|
139 |
upload_status = gr.Textbox(label="Upload Status", interactive=False)
|
140 |
upload_button = gr.Button("Process Upload")
|
141 |
|