shtif commited on
Commit
3428358
·
1 Parent(s): 0d705ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def launch(input):
15
  for file in input:
16
  inputs.append(processor(Image.open(file.name), return_tensors="pt"))
17
 
18
- out = model.generate(**inputs)
19
  return processor.decode(out[0], skip_special_tokens=True)
20
 
21
  description = "Simple BLIP test app for image captioning."
 
15
  for file in input:
16
  inputs.append(processor(Image.open(file.name), return_tensors="pt"))
17
 
18
+ out = model.generate(*inputs)
19
  return processor.decode(out[0], skip_special_tokens=True)
20
 
21
  description = "Simple BLIP test app for image captioning."