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() | |
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() | |