likhithv commited on
Commit
61a17bc
·
verified ·
1 Parent(s): 1b7ddd5

Update donut_inference.py

Browse files
Files changed (1) hide show
  1. 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
- processor.to(device)
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)