prithivMLmods commited on
Commit
0e197cb
·
verified ·
1 Parent(s): 515bb0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -174,7 +174,7 @@ processor_x = AutoProcessor.from_pretrained(MODEL_ID_X, trust_remote_code=True)
174
  model_x = Qwen2_5_VLForConditionalGeneration.from_pretrained(
175
  MODEL_ID_X,
176
  trust_remote_code=True,
177
- torch_dtype=torch.float16
178
  ).to(device).eval()
179
 
180
  # Load Dots.OCR from the local, patched directory
 
174
  model_x = Qwen2_5_VLForConditionalGeneration.from_pretrained(
175
  MODEL_ID_X,
176
  trust_remote_code=True,
177
+ torch_dtype="auto",
178
  ).to(device).eval()
179
 
180
  # Load Dots.OCR from the local, patched directory