daniloedu commited on
Commit
54b8a2d
·
verified ·
1 Parent(s): 82cfa5d

Fixing the markdown for the app

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -9,13 +9,16 @@ def launch(input):
9
  out = pipe(input)
10
  return out[0]['generated_text']
11
 
12
- gr.Markdown(
13
- """
14
- # Hello World!
15
- Start typing below to see the output.
16
- """)
17
 
18
  iface = gr.Interface(launch,
19
  inputs=gr.Image(type='pil'),
20
- outputs="text")
 
 
 
21
  iface.launch()
 
9
  out = pipe(input)
10
  return out[0]['generated_text']
11
 
12
+ markdown_message= gr.Markdown(
13
+ """
14
+ # Image Captioning!
15
+ BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation.
16
+ """)
17
 
18
  iface = gr.Interface(launch,
19
  inputs=gr.Image(type='pil'),
20
+ outputs="text",
21
+ title="Image Captioning based on Salesforce Blip",
22
+ description="Upload an image and get its caption.")
23
+ iface.set_input([markdown_message])
24
  iface.launch()