Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,6 @@ image.save("COSCO_sample.jpg")
|
|
| 22 |
image = Image.open("./sample-booking/ONEY_150.jpg")
|
| 23 |
image.save("ONEY_sample.jpg")
|
| 24 |
|
| 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"]],)
|
|
|
|
| 22 |
image = Image.open("./sample-booking/ONEY_150.jpg")
|
| 23 |
image.save("ONEY_sample.jpg")
|
| 24 |
|
|
|
|
| 25 |
model = DonutModel.from_pretrained("uartimcs/donut-booking-extract")
|
| 26 |
model.eval()
|
| 27 |
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"]],)
|