Spaces:
Sleeping
Sleeping
Commit
·
b55ea91
1
Parent(s):
b3f3f79
fix pdf file upload with new gradio version
Browse files
app.py
CHANGED
|
@@ -110,9 +110,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Column(scale=2):
|
| 112 |
gr.Markdown("## 1️⃣ Upload PDFs")
|
| 113 |
-
file = gr.File(
|
| 114 |
-
file_types=["pdf"], file_count="multiple", label="Upload PDFs"
|
| 115 |
-
)
|
| 116 |
|
| 117 |
convert_button = gr.Button("🔄 Index documents")
|
| 118 |
message = gr.Textbox("Files not yet uploaded", label="Status")
|
|
|
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Column(scale=2):
|
| 112 |
gr.Markdown("## 1️⃣ Upload PDFs")
|
| 113 |
+
file = gr.File(file_count="multiple", label="Upload PDFs")
|
|
|
|
|
|
|
| 114 |
|
| 115 |
convert_button = gr.Button("🔄 Index documents")
|
| 116 |
message = gr.Textbox("Files not yet uploaded", label="Status")
|