sss2000 commited on
Commit
e67620f
1 Parent(s): 824cdd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def audio2txt(audioname):
14
  def translation(txt):
15
  pipe = pipeline("translation", model= "Helsinki-NLP/opus-mt-en-zh")
16
  rst = pipe(txt)
17
- return rst["translation_text"]
18
 
19
  # Main function
20
  def main():
 
14
  def translation(txt):
15
  pipe = pipeline("translation", model= "Helsinki-NLP/opus-mt-en-zh")
16
  rst = pipe(txt)
17
+ return rst
18
 
19
  # Main function
20
  def main():