Commit
·
f171064
1
Parent(s):
11bb364
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
|
|
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=
|
7 |
theme="peach",
|
8 |
title='🌽 Spanish to Nahuatl Automatic Translation',
|
9 |
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',
|
|
|
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=1, label="Input Text"),
|
7 |
theme="peach",
|
8 |
title='🌽 Spanish to Nahuatl Automatic Translation',
|
9 |
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',
|