Spaces:
Runtime error
Runtime error
Create app.py
Browse files12345678910111213import gradio as grfrom transformers import pipeline
pipe = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")def launch(input): out = pipe(input) return out[0]['generated_text'] iface = gr.Interface(launch, inputs=gr.Image(type='pil'), outputs="text")iface.launch()app.pyAdded+13