uartimcs commited on
Commit
4585126
·
verified ·
1 Parent(s): c711c5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,5 +25,5 @@ image.save("ONEY_sample.jpg")
25
 
26
  model = DonutModel.from_pretrained("uartimcs/donut-booking-extract")
27
  model.eval()
28
- demo = gr.Interface(fn=demo_process,inputs=gr.Image(type="pil"),outputs="json", title=f"Donut 🍩 demonstration for `{task_name}` task", examples=[["CMA_sample.jpg"], ["COSCO_sample.jpg"], ["ONEY_sample.jpg"]],)
29
  demo.launch()
 
25
 
26
  model = DonutModel.from_pretrained("uartimcs/donut-booking-extract")
27
  model.eval()
28
+ demo = gr.Interface(fn=demo_process,inputs="images",outputs="json", title=f"Donut 🍩 demonstration for `{task_name}` task", examples=[["CMA_sample.jpg"], ["COSCO_sample.jpg"], ["ONEY_sample.jpg"]],)
29
  demo.launch()