Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,12 +12,14 @@ def predict(text):
|
|
12 |
return pipe(text)[0]["translation_text"]
|
13 |
|
14 |
title = "Tradutor inglês para Brasileires"
|
|
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
22 |
|
23 |
iface.launch()
|
|
|
12 |
return pipe(text)[0]["translation_text"]
|
13 |
|
14 |
title = "Tradutor inglês para Brasileires"
|
15 |
+
iface = gr.Interface(fn, inputs=[gr.Textbox(label="text", lines=3)], outputs='text', title=title, api_name="text")
|
16 |
|
17 |
+
|
18 |
+
#iface = gr.Interface(
|
19 |
+
# predict,
|
20 |
+
# inputs=[gr.Textbox(label="text", lines=3)],
|
21 |
+
# outputs='text',
|
22 |
+
# title=title,
|
23 |
+
#)
|
24 |
|
25 |
iface.launch()
|