Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import torch
|
|
4 |
|
5 |
from transformers import DonutProcessor, VisionEncoderDecoderModel
|
6 |
|
7 |
-
processor = DonutProcessor.from_pretrained("
|
8 |
-
model = VisionEncoderDecoderModel.from_pretrained("
|
9 |
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
model.to(device)
|
|
|
4 |
|
5 |
from transformers import DonutProcessor, VisionEncoderDecoderModel
|
6 |
|
7 |
+
processor = DonutProcessor.from_pretrained("naver-clova-ix/donut-base-finetuned-cord-v2")
|
8 |
+
model = VisionEncoderDecoderModel.from_pretrained("naver-clova-ix/donut-base-finetuned-cord-v2")
|
9 |
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
model.to(device)
|