Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,8 @@ model = AutoModelForTokenClassification.from_pretrained("jinhybr/OCR-LayoutLMv3-
|
|
43 |
|
44 |
# load image example
|
45 |
dataset = load_dataset("jinhybr/WildReceipt", split="test")
|
46 |
-
Image.open(dataset[
|
47 |
-
Image.open(dataset[
|
48 |
Image.open(dataset[25]["image_path"]).convert("RGB").save("example3.png")
|
49 |
# define id2label, label2color
|
50 |
labels = dataset.features['ner_tags'].feature.names
|
|
|
43 |
|
44 |
# load image example
|
45 |
dataset = load_dataset("jinhybr/WildReceipt", split="test")
|
46 |
+
Image.open(dataset[1]["image_path"]).convert("RGB").save("example1.png")
|
47 |
+
Image.open(dataset[3]["image_path"]).convert("RGB").save("example2.png")
|
48 |
Image.open(dataset[25]["image_path"]).convert("RGB").save("example3.png")
|
49 |
# define id2label, label2color
|
50 |
labels = dataset.features['ner_tags'].feature.names
|