rockdrigoma commited on
Commit
74484cc
1 Parent(s): fba8bdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1,4 +1,14 @@
1
  import gradio as gr
2
 
3
  prefix = "translate Spanish to Nahuatl: "
4
- 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()
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
  prefix = "translate Spanish to Nahuatl: "
4
+ gr.Interface.load(
5
+ "huggingface/hackathon-pln-es/t5-small-spanish-nahuatl",
6
+ inputs=gr.inputs.Textbox(lines=5, label="Input Text"),
7
+ theme="darkpeach",
8
+ title='Spanish to Nahuatl Translation',
9
+ description='This is a model that was trained to translate from Spanish to Nahuatl',
10
+ examples=[
11
+ prefix+'hola',
12
+ prefix+'adios',
13
+ prefix+'lugar de las tortuguitas']
14
+ ).launch()