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="grass", title='Spanish to Nahuatl Translation').launch() | |