Spaces:
Sleeping
Sleeping
younes21000
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,8 @@ def load_translation_model(target_language):
|
|
36 |
"hi": "hi", # Hindi
|
37 |
"ja": "ja", # Japanese
|
38 |
"ko": "ko", # Korean
|
39 |
-
"ru": "ru"
|
40 |
-
|
41 |
}
|
42 |
target_lang_code = lang_codes.get(target_language)
|
43 |
if not target_lang_code:
|
@@ -235,7 +235,7 @@ iface = gr.Interface(
|
|
235 |
inputs=[
|
236 |
gr.File(label="Upload Video File"),
|
237 |
gr.Dropdown(label="Select Original Video Language", choices=["en", "es", "fr", "de", "it", "pt"], value="en"),
|
238 |
-
gr.Dropdown(label="Select Subtitle Translation Language", choices=["en", "fa", "es", "de", "fr", "it", "pt"
|
239 |
gr.Dropdown(label="Select Whisper Model", choices=list(whisper_models.keys()), value="Tiny (Fast, Less Accurate)"),
|
240 |
gr.Radio(label="Choose Output Format", choices=["SRT", "Video with Hardsub", "Word", "PDF", "PowerPoint"], value="Video with Hardsub")
|
241 |
],
|
|
|
36 |
"hi": "hi", # Hindi
|
37 |
"ja": "ja", # Japanese
|
38 |
"ko": "ko", # Korean
|
39 |
+
"ru": "ru" # Russian
|
40 |
+
|
41 |
}
|
42 |
target_lang_code = lang_codes.get(target_language)
|
43 |
if not target_lang_code:
|
|
|
235 |
inputs=[
|
236 |
gr.File(label="Upload Video File"),
|
237 |
gr.Dropdown(label="Select Original Video Language", choices=["en", "es", "fr", "de", "it", "pt"], value="en"),
|
238 |
+
gr.Dropdown(label="Select Subtitle Translation Language", choices=["en", "fa", "es", "de", "fr", "it", "pt"], value="fa"),
|
239 |
gr.Dropdown(label="Select Whisper Model", choices=list(whisper_models.keys()), value="Tiny (Fast, Less Accurate)"),
|
240 |
gr.Radio(label="Choose Output Format", choices=["SRT", "Video with Hardsub", "Word", "PDF", "PowerPoint"], value="Video with Hardsub")
|
241 |
],
|