stevengrove commited on
Commit
5f3306d
·
verified ·
1 Parent(s): 11e6da8

Update src/mindomni.py

Browse files
Files changed (1) hide show
  1. src/mindomni.py +2 -2
src/mindomni.py CHANGED
@@ -153,9 +153,9 @@ class MindOmni:
153
  images=image_inputs,
154
  videos=video_inputs,
155
  padding=True,
156
- return_tensors="pt",
157
  )
158
- inputs = inputs.to("npu")
159
 
160
  if use_cot:
161
  # Inference: Generation of the output
 
153
  images=image_inputs,
154
  videos=video_inputs,
155
  padding=True,
156
+ return_tensors='pt',
157
  )
158
+ inputs = inputs.to(self.device)
159
 
160
  if use_cot:
161
  # Inference: Generation of the output