Spaces:
Runtime error
Runtime error
Commit
·
04a35f4
1
Parent(s):
3eb6200
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ model = AutoModelForTokenClassification.from_pretrained("microsoft/layoutlmv3-ba
|
|
24 |
|
25 |
|
26 |
# load image example
|
27 |
-
|
28 |
# Image.open(dataset[2]["image_path"]).convert("RGB").save("example1.png")
|
29 |
# Image.open(dataset[1]["image_path"]).convert("RGB").save("example2.png")
|
30 |
# Image.open(dataset[0]["image_path"]).convert("RGB").save("example3.png")
|
|
|
24 |
|
25 |
|
26 |
# load image example
|
27 |
+
dataset = load_dataset("darentang/generated", split="test")
|
28 |
# Image.open(dataset[2]["image_path"]).convert("RGB").save("example1.png")
|
29 |
# Image.open(dataset[1]["image_path"]).convert("RGB").save("example2.png")
|
30 |
# Image.open(dataset[0]["image_path"]).convert("RGB").save("example3.png")
|