ydshieh HF staff commited on
Commit
02572c5
1 Parent(s): 185d9a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"],