blip-api / app.py
spuun's picture
Update app.py
e607d4a
raw
history blame
191 Bytes
import gradio as gr
from transformers import pipeline
model_id = "Salesforce/blip-image-captioning-large"
captioner = pipeline(model=model_id)
gr.Interface.from_pipeline(captioner).launch()