jinhybr commited on
Commit
5d50c04
1 Parent(s): 8dcdb27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ model = LayoutLMv3Processor.from_pretrained(
32
 
33
  # load image example
34
  dataset = load_dataset("nielsr/funsd-layoutlmv3", split="test")
35
- image = Image.open(dataset[0]["image_path"]).convert("RGB")
36
  image = Image.open("./example_lm3.png")
37
  image.save("document.png")
38
 
 
32
 
33
  # load image example
34
  dataset = load_dataset("nielsr/funsd-layoutlmv3", split="test")
35
+ image = Image.open(dataset[0]["image"]).convert("RGB")
36
  image = Image.open("./example_lm3.png")
37
  image.save("document.png")
38