Spaces:
Running
Running
adding portuguese
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def video_to_translate(file_obj,initial_language,final_language):
|
|
26 |
lang_in='de-DE'
|
27 |
elif initial_language == "Japanese":
|
28 |
lang_in='ja-JP'
|
29 |
-
elif
|
30 |
lang_in='pt-BR'
|
31 |
# open the file
|
32 |
with sr.AudioFile("test.wav") as source:
|
@@ -47,7 +47,7 @@ def video_to_translate(file_obj,initial_language,final_language):
|
|
47 |
lang='de'
|
48 |
elif final_language == "Japanese":
|
49 |
lang='ja'
|
50 |
-
elif
|
51 |
lang='pt'
|
52 |
print(lang)
|
53 |
# init the Google API translator
|
|
|
26 |
lang_in='de-DE'
|
27 |
elif initial_language == "Japanese":
|
28 |
lang_in='ja-JP'
|
29 |
+
elif initial_language == "Portuguese":
|
30 |
lang_in='pt-BR'
|
31 |
# open the file
|
32 |
with sr.AudioFile("test.wav") as source:
|
|
|
47 |
lang='de'
|
48 |
elif final_language == "Japanese":
|
49 |
lang='ja'
|
50 |
+
elif final_language == "Portuguese":
|
51 |
lang='pt'
|
52 |
print(lang)
|
53 |
# init the Google API translator
|