Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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", model
|
18 |
rst = pipe(txt)
|
19 |
return rst
|
20 |
|
|
|
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 |
|