Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,14 +11,13 @@ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-en-pt")
|
|
11 |
def translate(text):
|
12 |
return pipe(text)[0]["translation_text"]
|
13 |
|
|
|
14 |
|
15 |
igr = gr.Interface(
|
16 |
fn=translate,
|
17 |
inputs=[gr.Textbox(label="text", lines=3)],
|
18 |
-
outputs=
|
19 |
-
title=
|
20 |
-
description="Traduza textos do inglês para o português",
|
21 |
)
|
22 |
|
23 |
-
|
24 |
-
igr.launch()
|
|
|
11 |
def translate(text):
|
12 |
return pipe(text)[0]["translation_text"]
|
13 |
|
14 |
+
titulo = "tradutor Inglês para Brazileirez"
|
15 |
|
16 |
igr = gr.Interface(
|
17 |
fn=translate,
|
18 |
inputs=[gr.Textbox(label="text", lines=3)],
|
19 |
+
outputs='text',
|
20 |
+
title=titulo,
|
|
|
21 |
)
|
22 |
|
23 |
+
igr.launch()
|
|