rockdrigoma
commited on
Commit
•
956e550
1
Parent(s):
1271ce0
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,10 @@ def predict(input):
|
|
13 |
|
14 |
gr.Interface(
|
15 |
fn=predict,
|
16 |
-
inputs=gr.inputs.Textbox(lines=1, label="Input Text"),
|
|
|
|
|
|
|
17 |
theme="peach",
|
18 |
title='🌽 Spanish to Nahuatl Automatic Translation',
|
19 |
description='This model is a T5 Transformer (t5-small) fine-tuned on 29,007 spanish and nahuatl sentences using 12,890 samples collected from the web and 16,117 samples from the Axolotl dataset. The dataset is normalized using "sep" normalization from py-elotl. For more details visit https://huggingface.co/hackathon-pln-es/t5-small-spanish-nahuatl',
|
|
|
13 |
|
14 |
gr.Interface(
|
15 |
fn=predict,
|
16 |
+
inputs=gr.inputs.Textbox(lines=1, label="Input Text in Spanish"),
|
17 |
+
outputs=[
|
18 |
+
gr.outputs.Textbox(label="Translated text in Nahuatl"),
|
19 |
+
],
|
20 |
theme="peach",
|
21 |
title='🌽 Spanish to Nahuatl Automatic Translation',
|
22 |
description='This model is a T5 Transformer (t5-small) fine-tuned on 29,007 spanish and nahuatl sentences using 12,890 samples collected from the web and 16,117 samples from the Axolotl dataset. The dataset is normalized using "sep" normalization from py-elotl. For more details visit https://huggingface.co/hackathon-pln-es/t5-small-spanish-nahuatl',
|