nielsr HF staff commited on
Commit
38ab1e3
·
1 Parent(s): 075ee8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ git_model.to(device)
16
  blip_model.to(device)
17
 
18
  def generate_caption(processor, model, image):
19
- inputs = processor(image=image, return_tensors="pt").to(device)
20
 
21
  generated_ids = model.generate(pixel_values=inputs.pixel_values, max_length=50)
22
 
 
16
  blip_model.to(device)
17
 
18
  def generate_caption(processor, model, image):
19
+ inputs = processor(images=image, return_tensors="pt").to(device)
20
 
21
  generated_ids = model.generate(pixel_values=inputs.pixel_values, max_length=50)
22