Spaces:
Runtime error
Runtime error
daniel-rdt
commited on
Commit
•
755f106
1
Parent(s):
81e67a0
translate fix
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def transcribe_url_yt(yt_url):
|
|
23 |
os.remove(audio)
|
24 |
# text translation
|
25 |
translator = google_translator()
|
26 |
-
translation = translator.translate(text,
|
27 |
|
28 |
return text, translation, title, thumbnail
|
29 |
|
|
|
23 |
os.remove(audio)
|
24 |
# text translation
|
25 |
translator = google_translator()
|
26 |
+
translation = translator.translate(text, lang_tgt='en')
|
27 |
|
28 |
return text, translation, title, thumbnail
|
29 |
|