quan1998 commited on
Commit
af8c607
·
verified ·
1 Parent(s): e07d862

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def translate(text):
15
  model = f"Helsinki-NLP/opus-mt-vi-en"
16
  pipe = pipeline("translation", model=model)
17
  translation = pipe(text)
18
- return translation[0]['translation_text'], ""
19
 
20
  def greet(prompt):
21
  text = translate(prompt)
 
15
  model = f"Helsinki-NLP/opus-mt-vi-en"
16
  pipe = pipeline("translation", model=model)
17
  translation = pipe(text)
18
+ return translation[0]['translation_text']
19
 
20
  def greet(prompt):
21
  text = translate(prompt)