Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -470,9 +470,15 @@ with gr.Blocks(title="Camel-Doc-OCR", css=css) as demo:
|
|
470 |
gr.Markdown("### 📥 INPUT")
|
471 |
|
472 |
# File Input
|
|
|
|
|
|
|
|
|
|
|
|
|
473 |
file_input = gr.File(
|
474 |
label="📤 Tải ảnh hoặc PDF",
|
475 |
-
file_types=
|
476 |
height=100
|
477 |
)
|
478 |
|
|
|
470 |
gr.Markdown("### 📥 INPUT")
|
471 |
|
472 |
# File Input
|
473 |
+
# file_input = gr.File(
|
474 |
+
# label="📤 Tải ảnh hoặc PDF",
|
475 |
+
# file_types=[".jpg", ".jpeg", ".png", ".pdf"],
|
476 |
+
# height=100
|
477 |
+
# )
|
478 |
+
# Cho phép tất cả file:
|
479 |
file_input = gr.File(
|
480 |
label="📤 Tải ảnh hoặc PDF",
|
481 |
+
file_types=None, # ← fix ở đây
|
482 |
height=100
|
483 |
)
|
484 |
|