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

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
  # Function to translate text
15
  @st.cache
16
  def translation(txt):
17
- pipe = pipeline("translation_en_to_zh", model="DDDSSS/translation_en-zh")
18
  rst = pipe(txt, max_length=40)
19
  return rst
20
 
 
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