jinhybr commited on
Commit
7a45b61
β€’
1 Parent(s): 0ed5d15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[18]["image_path"]).convert("RGB").save("example1.png")
47
- Image.open(dataset[19]["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
 
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