Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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]["
|
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 |
|