rockdrigoma's picture
Update app.py
2c5321c
raw
history blame
447 Bytes
import gradio as gr
prefix = "translate Spanish to Nahuatl: "
gr.Interface.load(
"huggingface/hackathon-pln-es/t5-small-spanish-nahuatl",
inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
theme="peach",
title='🌽 Spanish to Nahuatl Translation',
description='This is a model that was trained to translate from Spanish to Nahuatl',
examples=[
prefix+'hola',
prefix+'conejo',
prefix+'estrella']
).launch()