Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ torch.hub.download_url_to_file('https://raw.githubusercontent.com/vis-nlp/ChartQ
|
|
| 9 |
|
| 10 |
|
| 11 |
model_name = "ahmed-masry/unichart-base-960"
|
| 12 |
-
model = VisionEncoderDecoderModel.from_pretrained(model_name
|
| 13 |
-
processor = DonutProcessor.from_pretrained(model_name
|
| 14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 15 |
model.to(device)
|
| 16 |
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
model_name = "ahmed-masry/unichart-base-960"
|
| 12 |
+
model = VisionEncoderDecoderModel.from_pretrained(model_name)
|
| 13 |
+
processor = DonutProcessor.from_pretrained(model_name)
|
| 14 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 15 |
model.to(device)
|
| 16 |
|