Liviu16 commited on
Commit
8702b18
Β·
verified Β·
1 Parent(s): 334a9a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ with gr.Blocks() as demo:
101
  gr.Markdown("# πŸ“‘ IntelliReceipt: Real-Time Invoice AI")
102
  with gr.Row():
103
  with gr.Column():
104
- img_input = gr.Image(type="pil", label="Drop Invoice")
105
  run_btn = gr.Button("πŸš€ Extract Data", variant="primary")
106
  with gr.Column():
107
  json_output = gr.JSON(label="Extracted Result")
 
101
  gr.Markdown("# πŸ“‘ IntelliReceipt: Real-Time Invoice AI")
102
  with gr.Row():
103
  with gr.Column():
104
+ img_input = gr.File(label="1. Upload Invoice (Image or PDF)", file_types=[".pdf", ".png", ".jpg", ".jpeg"])
105
  run_btn = gr.Button("πŸš€ Extract Data", variant="primary")
106
  with gr.Column():
107
  json_output = gr.JSON(label="Extracted Result")