rdlf's picture
Update app.py
f100609 verified
raw
history blame
349 Bytes
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="somosnlp/Phi-2-LenguajeClaro", 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()