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