Update app.py
Browse files
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=
|
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()
|