joinfv commited on
Commit
bb1da69
·
verified ·
1 Parent(s): 6fb7e2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- title = "English to French Translation"
11
 
12
- iface = gr.Interface(
13
  fn=predict,
14
  inputs=[gr.Textbox(label="text", lines=3)],
15
  outputs='text',
16
- title=title,
17
  )
18
 
19
- iface.launch()
 
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()