Spaces:
Running
Running
Update app.py
Browse files
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="
|
29 |
demo.launch()
|
|
|
25 |
|
26 |
model = DonutModel.from_pretrained("uartimcs/donut-booking-extract")
|
27 |
model.eval()
|
28 |
+
demo = gr.Interface(fn=demo_process,inputs="image",outputs="json", title=f"Donut 🍩 demonstration for `{task_name}` task", examples=[["CMA_sample.jpg"], ["COSCO_sample.jpg"], ["ONEY_sample.jpg"]],)
|
29 |
demo.launch()
|