# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="telodigoensergio/phi2-LC-merged", trust_remote_code=True) import gradio as gr def eval_text (text): return (pipe(text)) demo = gr.Interface(fn=eval_text, inputs="text", outputs="text", title="Lenguaje Claro") demo.launch()