opentyphoon commited on
Commit
d01316b
Β·
verified Β·
1 Parent(s): b6a381b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 (Only 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")
 
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")