Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ def main():
|
|
186 |
else:
|
187 |
text_input = f"<grounding>{text_input}"
|
188 |
|
189 |
-
inputs = processor(text=text_input, images=image_input, return_tensors="pt")
|
190 |
|
191 |
generated_ids = model.generate(
|
192 |
pixel_values=inputs["pixel_values"],
|
|
|
186 |
else:
|
187 |
text_input = f"<grounding>{text_input}"
|
188 |
|
189 |
+
inputs = processor(text=text_input, images=image_input, return_tensors="pt").to("cuda")
|
190 |
|
191 |
generated_ids = model.generate(
|
192 |
pixel_values=inputs["pixel_values"],
|