Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,10 +18,6 @@ def demo_process(input_img):
|
|
18 |
|
19 |
task_prompt = f"<s_cord-v2>"
|
20 |
|
21 |
-
image = Image.open("./sample_image_cord_test_receipt_00004.png")
|
22 |
-
image.save("cord_sample_receipt1.png")
|
23 |
-
image = Image.open("./sample_image_cord_test_receipt_00012.png")
|
24 |
-
image.save("cord_sample_receipt2.png")
|
25 |
|
26 |
pretrained_model = DonutModel.from_pretrained("to-be/ID_cards_v1")
|
27 |
pretrained_model.eval()
|
@@ -37,7 +33,7 @@ More CORD receipt images are available at https://huggingface.co/datasets/naver-
|
|
37 |
More details are available at:
|
38 |
- Paper: https://arxiv.org/abs/2111.15664
|
39 |
- GitHub: https://github.com/clovaai/donut""",
|
40 |
-
examples=[["
|
41 |
cache_examples=False,
|
42 |
)
|
43 |
|
|
|
18 |
|
19 |
task_prompt = f"<s_cord-v2>"
|
20 |
|
|
|
|
|
|
|
|
|
21 |
|
22 |
pretrained_model = DonutModel.from_pretrained("to-be/ID_cards_v1")
|
23 |
pretrained_model.eval()
|
|
|
33 |
More details are available at:
|
34 |
- Paper: https://arxiv.org/abs/2111.15664
|
35 |
- GitHub: https://github.com/clovaai/donut""",
|
36 |
+
examples=[["3001.jpg"]],
|
37 |
cache_examples=False,
|
38 |
)
|
39 |
|