Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,10 @@ import html
|
|
7 |
from transformers import DonutProcessor, VisionEncoderDecoderModel
|
8 |
|
9 |
pretrained_repo_name = 'ivelin/donut-refexp-combined-v1'
|
10 |
-
pretrained_revision = '
|
11 |
-
# '
|
|
|
|
|
12 |
print(f"Loading model checkpoint: {pretrained_repo_name}")
|
13 |
|
14 |
processor = DonutProcessor.from_pretrained(pretrained_repo_name, revision=pretrained_revision)
|
|
|
7 |
from transformers import DonutProcessor, VisionEncoderDecoderModel
|
8 |
|
9 |
pretrained_repo_name = 'ivelin/donut-refexp-combined-v1'
|
10 |
+
pretrained_revision = 'main'
|
11 |
+
# revision: '348ddad8e958d370b7e341acd6050330faa0500f' # Iou = 0.47
|
12 |
+
# revision: '41210d7c42a22e77711711ec45508a6b63ec380f' # : IoU=0.42
|
13 |
+
# use 'main' for latest revision
|
14 |
print(f"Loading model checkpoint: {pretrained_repo_name}")
|
15 |
|
16 |
processor = DonutProcessor.from_pretrained(pretrained_repo_name, revision=pretrained_revision)
|