anasmkh commited on
Commit
b6d31e4
·
verified ·
1 Parent(s): 0b57010

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -131,12 +131,13 @@ 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
- file_upload = gr.File(
135
- label="Upload Files",
136
- file_count="multiple",
137
- file_types=[".pdf", ".csv", ".txt", ".xlsx", ".xls", ".doc", ".docx"],
138
- type="file" # returns file paths
139
- )
 
140
  upload_status = gr.Textbox(label="Upload Status", interactive=False)
141
  upload_button = gr.Button("Process Upload")
142
 
 
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
+
140
+ )
141
  upload_status = gr.Textbox(label="Upload Status", interactive=False)
142
  upload_button = gr.Button("Process Upload")
143