shlomoc commited on
Commit
d2e6f5f
1 Parent(s): c839542

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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="text")
 
 
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()