Spaces:
Running
Running
Update app_rvc.py
Browse files- app_rvc.py +17 -17
app_rvc.py
CHANGED
@@ -1477,7 +1477,7 @@ class SoniTranslate(SoniTrCache):
|
|
1477 |
return output
|
1478 |
|
1479 |
|
1480 |
-
title = "<center><strong><font size='
|
1481 |
|
1482 |
|
1483 |
def create_gui(theme, logs_in_gui=True):
|
@@ -1562,7 +1562,7 @@ def create_gui(theme, logs_in_gui=True):
|
|
1562 |
)
|
1563 |
TRANSLATE_AUDIO_TO = gr.Dropdown(
|
1564 |
LANGUAGES_LIST[1:],
|
1565 |
-
value="
|
1566 |
label=lg_conf["tat_label"],
|
1567 |
info=lg_conf["tat_info"],
|
1568 |
)
|
@@ -1597,21 +1597,21 @@ def create_gui(theme, logs_in_gui=True):
|
|
1597 |
|
1598 |
tts_voice00 = gr.Dropdown(
|
1599 |
SoniTr.tts_info.tts_list(),
|
1600 |
-
value="
|
1601 |
label=lg_conf["sk1"],
|
1602 |
visible=True,
|
1603 |
interactive=True,
|
1604 |
)
|
1605 |
tts_voice01 = gr.Dropdown(
|
1606 |
SoniTr.tts_info.tts_list(),
|
1607 |
-
value="
|
1608 |
label=lg_conf["sk2"],
|
1609 |
visible=False,
|
1610 |
interactive=True,
|
1611 |
)
|
1612 |
tts_voice02 = gr.Dropdown(
|
1613 |
SoniTr.tts_info.tts_list(),
|
1614 |
-
value="
|
1615 |
label=lg_conf["sk3"],
|
1616 |
visible=False,
|
1617 |
interactive=True,
|
@@ -1732,7 +1732,7 @@ def create_gui(theme, logs_in_gui=True):
|
|
1732 |
interactive=True,
|
1733 |
)
|
1734 |
voice_imitation_vocals_dereverb_gui = gr.Checkbox(
|
1735 |
-
|
1736 |
label=lg_conf["vc_dereverb_label"],
|
1737 |
info=lg_conf["vc_dereverb_info"],
|
1738 |
)
|
@@ -1798,7 +1798,7 @@ def create_gui(theme, logs_in_gui=True):
|
|
1798 |
):
|
1799 |
audio_accelerate = gr.Slider(
|
1800 |
label=lg_conf["acc_max_label"],
|
1801 |
-
value=1.
|
1802 |
step=0.1,
|
1803 |
minimum=1.0,
|
1804 |
maximum=2.5,
|
@@ -1807,12 +1807,12 @@ def create_gui(theme, logs_in_gui=True):
|
|
1807 |
info=lg_conf["acc_max_info"],
|
1808 |
)
|
1809 |
acceleration_rate_regulation_gui = gr.Checkbox(
|
1810 |
-
|
1811 |
label=lg_conf["acc_rate_label"],
|
1812 |
info=lg_conf["acc_rate_info"],
|
1813 |
)
|
1814 |
avoid_overlap_gui = gr.Checkbox(
|
1815 |
-
|
1816 |
label=lg_conf["or_label"],
|
1817 |
info=lg_conf["or_info"],
|
1818 |
)
|
@@ -1832,7 +1832,7 @@ def create_gui(theme, logs_in_gui=True):
|
|
1832 |
volume_original_mix = gr.Slider(
|
1833 |
label=lg_conf["vol_ori"],
|
1834 |
info="for Adjusting volumes and mixing audio",
|
1835 |
-
value=0.
|
1836 |
step=0.05,
|
1837 |
minimum=0.0,
|
1838 |
maximum=2.50,
|
@@ -1842,7 +1842,7 @@ def create_gui(theme, logs_in_gui=True):
|
|
1842 |
volume_translated_mix = gr.Slider(
|
1843 |
label=lg_conf["vol_tra"],
|
1844 |
info="for Adjusting volumes and mixing audio",
|
1845 |
-
value=
|
1846 |
step=0.05,
|
1847 |
minimum=0.0,
|
1848 |
maximum=2.50,
|
@@ -1924,7 +1924,7 @@ def create_gui(theme, logs_in_gui=True):
|
|
1924 |
label=lg_conf["ctype_label"],
|
1925 |
info=lg_conf["ctype_info"],
|
1926 |
)
|
1927 |
-
batch_size_value =
|
1928 |
batch_size = gr.Slider(
|
1929 |
minimum=1,
|
1930 |
maximum=32,
|
@@ -1963,12 +1963,12 @@ def create_gui(theme, logs_in_gui=True):
|
|
1963 |
)
|
1964 |
diarization_process_dropdown = gr.Dropdown(
|
1965 |
pyannote_models_list,
|
1966 |
-
value=pyannote_models_list[
|
1967 |
label=lg_conf["diarization_label"],
|
1968 |
)
|
1969 |
translate_process_dropdown = gr.Dropdown(
|
1970 |
TRANSLATION_PROCESS_OPTIONS,
|
1971 |
-
value=TRANSLATION_PROCESS_OPTIONS[
|
1972 |
label=lg_conf["tr_process_label"],
|
1973 |
)
|
1974 |
|
@@ -2846,7 +2846,7 @@ def create_parser():
|
|
2846 |
parser.add_argument(
|
2847 |
"--theme",
|
2848 |
type=str,
|
2849 |
-
default="
|
2850 |
help=(
|
2851 |
"Specify the theme; find themes in "
|
2852 |
"https://huggingface.co/spaces/gradio/theme-gallery;"
|
@@ -2887,7 +2887,7 @@ def create_parser():
|
|
2887 |
help="Enable CPU mode to run the program without utilizing GPU acceleration.",
|
2888 |
)
|
2889 |
return parser
|
2890 |
-
|
2891 |
|
2892 |
if __name__ == "__main__":
|
2893 |
|
@@ -2895,7 +2895,7 @@ if __name__ == "__main__":
|
|
2895 |
|
2896 |
args = parser.parse_args()
|
2897 |
# Simulating command-line arguments
|
2898 |
-
# args_list = "--theme
|
2899 |
# args = parser.parse_args(args_list)
|
2900 |
|
2901 |
set_logging_level(args.verbosity_level)
|
|
|
1477 |
return output
|
1478 |
|
1479 |
|
1480 |
+
title = "<center><strong><font size='9'>📽️ Welcome Back to Aleph Weo Webeta Video Dubbing Ui✝️</font></strong></center>"
|
1481 |
|
1482 |
|
1483 |
def create_gui(theme, logs_in_gui=True):
|
|
|
1562 |
)
|
1563 |
TRANSLATE_AUDIO_TO = gr.Dropdown(
|
1564 |
LANGUAGES_LIST[1:],
|
1565 |
+
value="Amharic (am)",
|
1566 |
label=lg_conf["tat_label"],
|
1567 |
info=lg_conf["tat_info"],
|
1568 |
)
|
|
|
1597 |
|
1598 |
tts_voice00 = gr.Dropdown(
|
1599 |
SoniTr.tts_info.tts_list(),
|
1600 |
+
value="am-facebook-mms VITS",
|
1601 |
label=lg_conf["sk1"],
|
1602 |
visible=True,
|
1603 |
interactive=True,
|
1604 |
)
|
1605 |
tts_voice01 = gr.Dropdown(
|
1606 |
SoniTr.tts_info.tts_list(),
|
1607 |
+
value="am-ET-AmehaNeural-Male",
|
1608 |
label=lg_conf["sk2"],
|
1609 |
visible=False,
|
1610 |
interactive=True,
|
1611 |
)
|
1612 |
tts_voice02 = gr.Dropdown(
|
1613 |
SoniTr.tts_info.tts_list(),
|
1614 |
+
value="am-ET-MekdesNeural-Female",
|
1615 |
label=lg_conf["sk3"],
|
1616 |
visible=False,
|
1617 |
interactive=True,
|
|
|
1732 |
interactive=True,
|
1733 |
)
|
1734 |
voice_imitation_vocals_dereverb_gui = gr.Checkbox(
|
1735 |
+
True,
|
1736 |
label=lg_conf["vc_dereverb_label"],
|
1737 |
info=lg_conf["vc_dereverb_info"],
|
1738 |
)
|
|
|
1798 |
):
|
1799 |
audio_accelerate = gr.Slider(
|
1800 |
label=lg_conf["acc_max_label"],
|
1801 |
+
value=1.2,
|
1802 |
step=0.1,
|
1803 |
minimum=1.0,
|
1804 |
maximum=2.5,
|
|
|
1807 |
info=lg_conf["acc_max_info"],
|
1808 |
)
|
1809 |
acceleration_rate_regulation_gui = gr.Checkbox(
|
1810 |
+
True,
|
1811 |
label=lg_conf["acc_rate_label"],
|
1812 |
info=lg_conf["acc_rate_info"],
|
1813 |
)
|
1814 |
avoid_overlap_gui = gr.Checkbox(
|
1815 |
+
True,
|
1816 |
label=lg_conf["or_label"],
|
1817 |
info=lg_conf["or_info"],
|
1818 |
)
|
|
|
1832 |
volume_original_mix = gr.Slider(
|
1833 |
label=lg_conf["vol_ori"],
|
1834 |
info="for Adjusting volumes and mixing audio",
|
1835 |
+
value=0.0,
|
1836 |
step=0.05,
|
1837 |
minimum=0.0,
|
1838 |
maximum=2.50,
|
|
|
1842 |
volume_translated_mix = gr.Slider(
|
1843 |
label=lg_conf["vol_tra"],
|
1844 |
info="for Adjusting volumes and mixing audio",
|
1845 |
+
value=2.50,
|
1846 |
step=0.05,
|
1847 |
minimum=0.0,
|
1848 |
maximum=2.50,
|
|
|
1924 |
label=lg_conf["ctype_label"],
|
1925 |
info=lg_conf["ctype_info"],
|
1926 |
)
|
1927 |
+
batch_size_value = 10 if os.environ.get("ZERO_GPU") != "TRUE" else 32
|
1928 |
batch_size = gr.Slider(
|
1929 |
minimum=1,
|
1930 |
maximum=32,
|
|
|
1963 |
)
|
1964 |
diarization_process_dropdown = gr.Dropdown(
|
1965 |
pyannote_models_list,
|
1966 |
+
value=pyannote_models_list[0],
|
1967 |
label=lg_conf["diarization_label"],
|
1968 |
)
|
1969 |
translate_process_dropdown = gr.Dropdown(
|
1970 |
TRANSLATION_PROCESS_OPTIONS,
|
1971 |
+
value=TRANSLATION_PROCESS_OPTIONS[1],
|
1972 |
label=lg_conf["tr_process_label"],
|
1973 |
)
|
1974 |
|
|
|
2846 |
parser.add_argument(
|
2847 |
"--theme",
|
2848 |
type=str,
|
2849 |
+
default="WeixuanYuan/Soft_dark",
|
2850 |
help=(
|
2851 |
"Specify the theme; find themes in "
|
2852 |
"https://huggingface.co/spaces/gradio/theme-gallery;"
|
|
|
2887 |
help="Enable CPU mode to run the program without utilizing GPU acceleration.",
|
2888 |
)
|
2889 |
return parser
|
2890 |
+
|
2891 |
|
2892 |
if __name__ == "__main__":
|
2893 |
|
|
|
2895 |
|
2896 |
args = parser.parse_args()
|
2897 |
# Simulating command-line arguments
|
2898 |
+
# args_list = "--theme JohnSmith9982/small_and_pretty --public_url".split()
|
2899 |
# args = parser.parse_args(args_list)
|
2900 |
|
2901 |
set_logging_level(args.verbosity_level)
|