Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def translate(text):
|
|
11 |
|
12 |
return tokenizer.decode(output[0], skip_special_tokens=True)
|
13 |
|
14 |
-
title = "Spanish to Quechua translation"
|
15 |
inputs = gr.inputs.Textbox(lines=1, label="Text in Spanish")
|
16 |
outputs = [gr.outputs.Textbox(label="Translated text in Quechua")]
|
17 |
|
@@ -34,5 +34,5 @@ examples=[
|
|
34 |
'Debes aprender a respetar',
|
35 |
]
|
36 |
|
37 |
-
iface = gr.Interface(fn=translate, inputs=inputs, outputs=outputs, theme="
|
38 |
iface.launch()
|
|
|
11 |
|
12 |
return tokenizer.decode(output[0], skip_special_tokens=True)
|
13 |
|
14 |
+
title = "Spanish to Quechua translation 🦙"
|
15 |
inputs = gr.inputs.Textbox(lines=1, label="Text in Spanish")
|
16 |
outputs = [gr.outputs.Textbox(label="Translated text in Quechua")]
|
17 |
|
|
|
34 |
'Debes aprender a respetar',
|
35 |
]
|
36 |
|
37 |
+
iface = gr.Interface(fn=translate, inputs=inputs, outputs=outputs, theme="dark", examples=examples, title=title, description=description, article=article)
|
38 |
iface.launch()
|