Update app.py
Browse files
app.py
CHANGED
@@ -7,13 +7,13 @@ pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-en-pt")
|
|
7 |
def predict(text):
|
8 |
return pipe(text)[0]["translation_text"]
|
9 |
|
10 |
-
|
11 |
|
12 |
-
|
13 |
fn=predict,
|
14 |
inputs=[gr.Textbox(label="text", lines=3)],
|
15 |
outputs='text',
|
16 |
-
title=
|
17 |
)
|
18 |
|
19 |
-
|
|
|
7 |
def predict(text):
|
8 |
return pipe(text)[0]["translation_text"]
|
9 |
|
10 |
+
titulo = "tradutor Inglês para Brazileirez"
|
11 |
|
12 |
+
igr = gr.Interface(
|
13 |
fn=predict,
|
14 |
inputs=[gr.Textbox(label="text", lines=3)],
|
15 |
outputs='text',
|
16 |
+
title=titulo,
|
17 |
)
|
18 |
|
19 |
+
igr.launch()
|