Update app_rvc.py
Browse files- app_rvc.py +1 -8
app_rvc.py
CHANGED
|
@@ -39,7 +39,6 @@ from soni_translate.postprocessor import (
|
|
| 39 |
)
|
| 40 |
from soni_translate.language_configuration import (
|
| 41 |
LANGUAGES,
|
| 42 |
-
UNIDIRECTIONAL_L_LIST,
|
| 43 |
LANGUAGES_LIST,
|
| 44 |
)
|
| 45 |
from soni_translate.utils import (
|
|
@@ -452,12 +451,6 @@ class SoniTranslate(SoniTrCache):
|
|
| 452 |
if not origin_language:
|
| 453 |
origin_language = "Automatic detection"
|
| 454 |
|
| 455 |
-
if origin_language in UNIDIRECTIONAL_L_LIST and not subtitle_file:
|
| 456 |
-
raise ValueError(
|
| 457 |
-
f"The language '{origin_language}' "
|
| 458 |
-
"is not supported for transcription (ASR)."
|
| 459 |
-
)
|
| 460 |
-
|
| 461 |
if get_translated_text:
|
| 462 |
self.edit_subs_complete = False
|
| 463 |
if get_video_from_text_json:
|
|
@@ -1531,7 +1524,7 @@ def create_gui(theme, logs_in_gui=False):
|
|
| 1531 |
)
|
| 1532 |
TRANSLATE_AUDIO_TO = gr.Dropdown(
|
| 1533 |
LANGUAGES_LIST[1:],
|
| 1534 |
-
value="
|
| 1535 |
label=lg_conf["tat_label"],
|
| 1536 |
info=lg_conf["tat_info"],
|
| 1537 |
)
|
|
|
|
| 39 |
)
|
| 40 |
from soni_translate.language_configuration import (
|
| 41 |
LANGUAGES,
|
|
|
|
| 42 |
LANGUAGES_LIST,
|
| 43 |
)
|
| 44 |
from soni_translate.utils import (
|
|
|
|
| 451 |
if not origin_language:
|
| 452 |
origin_language = "Automatic detection"
|
| 453 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 454 |
if get_translated_text:
|
| 455 |
self.edit_subs_complete = False
|
| 456 |
if get_video_from_text_json:
|
|
|
|
| 1524 |
)
|
| 1525 |
TRANSLATE_AUDIO_TO = gr.Dropdown(
|
| 1526 |
LANGUAGES_LIST[1:],
|
| 1527 |
+
value="Vietnamese (vi)",
|
| 1528 |
label=lg_conf["tat_label"],
|
| 1529 |
info=lg_conf["tat_info"],
|
| 1530 |
)
|