sss2000 commited on
Commit
e6eb440
1 Parent(s): 2d896c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,8 +14,8 @@ def audio2txt(audioname):
14
  # Function to translate text
15
  @st.cache
16
  def translation(txt):
17
- pipe = pipeline("translation", model="DDDSSS/translation_en-zh")
18
- rst = pipe(txt, max_length=40)
19
  return rst
20
 
21
  # Main function
 
14
  # Function to translate text
15
  @st.cache
16
  def translation(txt):
17
+ pipe = pipeline("translation", model=“Helsinki-NLP/opus-mt-en-zh)
18
+ rst = pipe(txt)
19
  return rst
20
 
21
  # Main function