Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ pretrained_repo_name = "ivelin/donut-refexp-combined-v1"
|
|
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
|
14 |
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
16 |
model.to(device)
|
|
|
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)
|
14 |
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
16 |
model.to(device)
|