Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
18 |
-
rst = pipe(txt
|
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
|