Spaces:
Runtime error
Runtime error
Commit ·
9e9343a
1
Parent(s): 26d364a
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
description = "Image captioning"
|
| 4 |
+
title = "Image to text"
|
| 5 |
+
|
| 6 |
+
interface = gr.Interface.load("huggingface/Salesforce/blip-image-captioning-large",
|
| 7 |
+
description=description,
|
| 8 |
+
title = title,
|
| 9 |
+
inputs = gr.Image(label="upload your image here",type="pil"),
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
interface.launch()
|