File size: 198 Bytes
4c22a71
7f0d03a
f8ad3f6
2e14bfe
7f0d03a
2e14bfe
1
2
3
4
5
6
from transformers import pipeline
import gradio as gr

pipe = pipeline("image-to-text", model="facebook/nougat-base", max_new_tokens=100)

gr.Interface.from_pipeline(pipe).title("marcello").launch()