joinfv commited on
Commit
709f468
·
verified ·
1 Parent(s): 7208c17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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="text",
19
- title="Tradutor Inglês-Português",
20
- description="Traduza textos do inglês para o português",
21
  )
22
 
23
- if __name__ == "__main__":
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()