File size: 229 Bytes
7c96d4d
 
ea313f9
 
1
2
3
4
5
import gradio as gr

formatted_input = "translate Spanish to Nahuatl: " + gr.inputs.Textbox(lines=5, label="Input Text")
gr.Interface.load("huggingface/hackathon-pln-es/t5-small-spanish-nahuatl", inputs=formatted_input).launch()