wjbmattingly commited on
Commit
54fb483
verified
1 Parent(s): 70166d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def process_image(image, text_input=None):
34
  # Resize the image
35
  image = image.resize((new_width, new_height))
36
 
37
- inputs = processor(text=prompt, images=image, return_tensors="pt").to("cuda")
38
 
39
  generated_ids = model.generate(
40
  input_ids=inputs["input_ids"],
 
34
  # Resize the image
35
  image = image.resize((new_width, new_height))
36
 
37
+ inputs = processor(text=prompt, images=image, return_tensors="pt")
38
 
39
  generated_ids = model.generate(
40
  input_ids=inputs["input_ids"],