Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
112 |
with gr.Row():
|
113 |
with gr.Column(scale=1):
|
114 |
# Update file_types to accept PDF as well as common image formats.
|
115 |
-
pdf_input = gr.File(label="π Upload PDF (
|
116 |
task_dropdown = gr.Dropdown(["default", "structure"], label="π― Select Task", value="default")
|
117 |
run_button = gr.Button("π Run")
|
118 |
image_output = gr.Image(label="πΈ Preview Image (Page 1)", type="pil")
|
|
|
112 |
with gr.Row():
|
113 |
with gr.Column(scale=1):
|
114 |
# Update file_types to accept PDF as well as common image formats.
|
115 |
+
pdf_input = gr.File(label="π Upload Image file or PDF file (only the first page will be processed)", file_types=[".pdf", ".png", ".jpg", ".jpeg"])
|
116 |
task_dropdown = gr.Dropdown(["default", "structure"], label="π― Select Task", value="default")
|
117 |
run_button = gr.Button("π Run")
|
118 |
image_output = gr.Image(label="πΈ Preview Image (Page 1)", type="pil")
|