joinfv commited on
Commit
790a5d1
·
verified ·
1 Parent(s): 99202de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
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
- iface = gr.Interface(
17
- predict,
18
- inputs=[gr.Textbox(label="text", lines=3)],
19
- outputs='text',
20
- title=title,
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()