Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ pretrained_model.eval()
|
|
| 20 |
|
| 21 |
demo = gr.Interface(
|
| 22 |
fn=demo_process,
|
| 23 |
-
inputs= gr.
|
| 24 |
outputs="json",
|
| 25 |
title=f"Donut 🍩 demonstration for `cord-v2` task",
|
| 26 |
examples=[["cord_sample_receipt1.png"]],
|
|
|
|
| 20 |
|
| 21 |
demo = gr.Interface(
|
| 22 |
fn=demo_process,
|
| 23 |
+
inputs= gr.Image(type="pil"),
|
| 24 |
outputs="json",
|
| 25 |
title=f"Donut 🍩 demonstration for `cord-v2` task",
|
| 26 |
examples=[["cord_sample_receipt1.png"]],
|