Spaces:
Runtime error
Runtime error
Update src/mindomni.py
Browse files- 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=
|
| 157 |
)
|
| 158 |
-
inputs = inputs.to(
|
| 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
|