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="darkpeach", | |
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() | |