File size: 451 Bytes
7c96d4d
 
88f6564
74484cc
 
 
 
0bdbb2b
74484cc
 
 
28b3fcb
 
74484cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()