Spaces:
Runtime error
Runtime error
Commit
·
def887a
1
Parent(s):
62ea442
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def transcript_generator(link,option):
|
|
17 |
if key == 'text':
|
18 |
transcript += val
|
19 |
|
20 |
-
translator = Translator()
|
21 |
translation = translator.translate(transcript, dest = option).text
|
22 |
|
23 |
return transcript,translation
|
|
|
17 |
if key == 'text':
|
18 |
transcript += val
|
19 |
|
20 |
+
translator = Translator(service_urls=['translate.googleapis.com'])
|
21 |
translation = translator.translate(transcript, dest = option).text
|
22 |
|
23 |
return transcript,translation
|