ZzzzzzzBbbbbbb commited on
Commit
9e9343a
·
1 Parent(s): 26d364a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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()