Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,15 @@ def launch(input):
|
|
9 |
out = pipe(input)
|
10 |
return out[0]['generated_text']
|
11 |
|
|
|
|
|
|
|
|
|
|
|
12 |
iface = gr.Interface(launch,
|
13 |
inputs=gr.Image(type='pil'),
|
14 |
-
outputs="
|
|
|
|
|
15 |
|
16 |
iface.launch()
|
|
|
9 |
out = pipe(input)
|
10 |
return out[0]['generated_text']
|
11 |
|
12 |
+
|
13 |
+
title = "Image captioning"
|
14 |
+
description = "Uses the Blip Image Captioning Model from Salesforce"
|
15 |
+
|
16 |
+
|
17 |
iface = gr.Interface(launch,
|
18 |
inputs=gr.Image(type='pil'),
|
19 |
+
outputs="caption"),
|
20 |
+
title=title,
|
21 |
+
description=description)
|
22 |
|
23 |
iface.launch()
|