from transformers import pipeline import gradio as gr pipe = pipeline("text-generation", model="tejasmakode/florence_OD", trust_remote_code=True) demo = gr.Interface.from_pipeline(pipe) demo.launch()