Spaces:
Runtime error
Runtime error
ivelin
commited on
Commit
•
a2780d6
1
Parent(s):
9cb2224
fix: switch model checkpoint
Browse filesSigned-off-by: ivelin <ivelin.eth@gmail.com>
app.py
CHANGED
@@ -7,6 +7,7 @@ import html
|
|
7 |
from transformers import DonutProcessor, VisionEncoderDecoderModel
|
8 |
|
9 |
pretrained_repo_name = "ivelin/donut-refexp-draft-precision2decs"
|
|
|
10 |
|
11 |
processor = DonutProcessor.from_pretrained(pretrained_repo_name)
|
12 |
model = VisionEncoderDecoderModel.from_pretrained(pretrained_repo_name)
|
|
|
7 |
from transformers import DonutProcessor, VisionEncoderDecoderModel
|
8 |
|
9 |
pretrained_repo_name = "ivelin/donut-refexp-draft-precision2decs"
|
10 |
+
print(f"Loading model checkpoint: {pretrained_repo_name}")
|
11 |
|
12 |
processor = DonutProcessor.from_pretrained(pretrained_repo_name)
|
13 |
model = VisionEncoderDecoderModel.from_pretrained(pretrained_repo_name)
|