Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def audio2txt(audioname):
|
|
21 |
return rst
|
22 |
|
23 |
def translation(txt):
|
24 |
-
pipe = pipeline(
|
25 |
rst = pipe(txt)
|
26 |
return rst
|
27 |
|
|
|
21 |
return rst
|
22 |
|
23 |
def translation(txt):
|
24 |
+
pipe = pipeline("translation", model="DDDSSS/translation_en-zh")
|
25 |
rst = pipe(txt)
|
26 |
return rst
|
27 |
|