File size: 322 Bytes
9e9343a
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr

description = "Image captioning"
title = "Image to text"

interface = gr.Interface.load("huggingface/Salesforce/blip-image-captioning-large",
            description=description,
            title = title,
            inputs = gr.Image(label="upload your image here",type="pil"),
)

interface.launch()