spuun commited on
Commit
690e180
1 Parent(s): 66b3f13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ model_id = "Salesforce/blip-image-captioning-large"
5
  captioner = pipeline(model=model_id)
6
 
7
  def launch(input):
8
- return captioner(input)
9
 
10
  iface = gr.Interface(launch, inputs="pil", outputs="text")
11
  iface.launch()
 
5
  captioner = pipeline(model=model_id)
6
 
7
  def launch(input):
8
+ return captioner(input)[0]["generated_text"]
9
 
10
  iface = gr.Interface(launch, inputs="pil", outputs="text")
11
  iface.launch()