Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ from nougat.dataset.rasterize import rasterize_paper
|
|
7 |
from transformers import NougatProcessor, VisionEncoderDecoderModel
|
8 |
import torch
|
9 |
|
10 |
-
processor = NougatProcessor.from_pretrained("
|
11 |
-
model = VisionEncoderDecoderModel.from_pretrained("
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
model.to(device)
|
|
|
7 |
from transformers import NougatProcessor, VisionEncoderDecoderModel
|
8 |
import torch
|
9 |
|
10 |
+
processor = NougatProcessor.from_pretrained("facebook/nougat-small")
|
11 |
+
model = VisionEncoderDecoderModel.from_pretrained("facebook/nougat-small")
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
model.to(device)
|