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).launch()