Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def audio2txt(audioname):
|
|
14 |
def translation(txt):
|
15 |
pipe = pipeline("translation", model= "Helsinki-NLP/opus-mt-en-zh")
|
16 |
rst = pipe(txt)
|
17 |
-
return rst
|
18 |
|
19 |
# Main function
|
20 |
def main():
|
|
|
14 |
def translation(txt):
|
15 |
pipe = pipeline("translation", model= "Helsinki-NLP/opus-mt-en-zh")
|
16 |
rst = pipe(txt)
|
17 |
+
return rst
|
18 |
|
19 |
# Main function
|
20 |
def main():
|