rockdrigoma
commited on
Commit
•
74484cc
1
Parent(s):
fba8bdc
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
prefix = "translate Spanish to Nahuatl: "
|
4 |
-
gr.Interface.load(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|