Update donut_inference.py
Browse files- donut_inference.py +1 -1
donut_inference.py
CHANGED
@@ -12,7 +12,7 @@ load_dotenv()
|
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
# Load the processor from the local directory
|
14 |
processor = DonutProcessor.from_pretrained("./Model")
|
15 |
-
|
16 |
# Load the model from the local directory
|
17 |
model = VisionEncoderDecoderModel.from_pretrained("./Model")
|
18 |
model.to(device)
|
|
|
12 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
13 |
# Load the processor from the local directory
|
14 |
processor = DonutProcessor.from_pretrained("./Model")
|
15 |
+
|
16 |
# Load the model from the local directory
|
17 |
model = VisionEncoderDecoderModel.from_pretrained("./Model")
|
18 |
model.to(device)
|