tonyassi commited on
Commit
80a7de9
β€’
1 Parent(s): 6b2d984

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  caption = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
5
 
6
  def greet(img):
7
- return caption(img, max_length='50')
8
 
9
  iface = gr.Interface(fn=greet, inputs=gr.Image(type='filepath'), outputs="text")
10
  iface.launch()
 
4
  caption = pipeline("image-to-text", model="Salesforce/blip-image-captioning-large")
5
 
6
  def greet(img):
7
+ return caption(img, max_length=50)
8
 
9
  iface = gr.Interface(fn=greet, inputs=gr.Image(type='filepath'), outputs="text")
10
  iface.launch()