Spaces:
Sleeping
Sleeping
Fixing the markdown for the app
Browse files
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 |
-
|
| 15 |
-
|
| 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()
|