Commit
·
0f89064
1
Parent(s):
57d3d17
add back RVC tab and old models
Browse files
app.py
CHANGED
@@ -1748,17 +1748,17 @@ def zip_downloader(model):
|
|
1748 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1749 |
|
1750 |
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
download_from_url('https://drive.google.com/uc?id=1fa6FSLwqSQMI49NvSXOpI4pUVuKsrop5&confirm=t', 'Andoni', 'cmss60')
|
1755 |
-
download_from_url('https://drive.google.com/uc?id=1iGhD93_szvs0xyg-U5z_jhfBECBxcTfK&confirm=t', 'Alex', 'cmss60')
|
1756 |
-
download_from_url('https://drive.google.com/uc?id=1DwRru_WFh4LS0eqU_39qEPuwltj9ZTRr&confirm=t', 'Elaine', 'cmss60')
|
1757 |
-
download_from_url('https://drive.google.com/uc?id=1Xen2BBRoqfF3CNO_XqEr2ZgCcITz--Je&confirm=t', 'Emily', 'cmss60')
|
1758 |
-
download_from_url('https://drive.google.com/uc?id=1gHfrS1rnhnj3sHdnOM4vx04rcxucc74D&confirm=t', 'Justis', 'cmss60')
|
1759 |
-
download_from_url('https://drive.google.com/uc?id=1PlQELpXawx74mEv9MYeREcyvwE7vFFe_&confirm=t', 'Kayana', 'cmss60')
|
1760 |
-
download_from_url('https://drive.google.com/uc?id=16hJvfWAhuWWVEeXyDYt9PHJl-k_Kouxf&confirm=t', 'Prince', 'cmss60')
|
1761 |
-
download_from_url('https://drive.google.com/uc?id=1zE1tP95_unNjVkqYb0aBt3AsBq_u9-R9&confirm=t', 'Lupe', 'cmss60')
|
1762 |
weight_root = "weights"
|
1763 |
index_root = "logs"
|
1764 |
names = []
|
@@ -1774,7 +1774,366 @@ for root, dirs, files in os.walk(index_root, topdown=False):
|
|
1774 |
|
1775 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="HITGEN AI") as app:
|
1776 |
with gr.Tabs():
|
1777 |
-
with gr.TabItem("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1778 |
app.load(update_message)
|
1779 |
|
1780 |
# Other RVC stuff
|
@@ -2456,5 +2815,5 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
2456 |
"-------------------------------\n"
|
2457 |
)
|
2458 |
|
2459 |
-
app.queue(concurrency_count=511, max_size=1022).launch(share=False, quiet=False, auth=[('jvke', 'thisfeelslikeai')
|
2460 |
#endregion
|
|
|
1748 |
return f'./weights/{model}.pth', "Could not find Index file."
|
1749 |
|
1750 |
|
1751 |
+
download_from_url('https://drive.google.com/uc?id=1O98vvnle_nZP8ZdpnZFLZ5TU1UZe7x0p&confirm=t', 'JVKE-main', 'jvke')
|
1752 |
+
download_from_url('https://drive.google.com/uc?id=1Wag0vPlp42kRDffccXljjjlK7QsHf2xe&confirm=t', 'JVKE-main-v2', 'jvke')
|
1753 |
+
download_from_url('https://drive.google.com/uc?id=1h810cil3YRlN4pu4oO43zKq9z3cYjItp&confirm=t', 'jvke-nighttime-v4', 'jvke')
|
1754 |
+
# download_from_url('https://drive.google.com/uc?id=1fa6FSLwqSQMI49NvSXOpI4pUVuKsrop5&confirm=t', 'Andoni', 'cmss60')
|
1755 |
+
# download_from_url('https://drive.google.com/uc?id=1iGhD93_szvs0xyg-U5z_jhfBECBxcTfK&confirm=t', 'Alex', 'cmss60')
|
1756 |
+
# download_from_url('https://drive.google.com/uc?id=1DwRru_WFh4LS0eqU_39qEPuwltj9ZTRr&confirm=t', 'Elaine', 'cmss60')
|
1757 |
+
# download_from_url('https://drive.google.com/uc?id=1Xen2BBRoqfF3CNO_XqEr2ZgCcITz--Je&confirm=t', 'Emily', 'cmss60')
|
1758 |
+
# download_from_url('https://drive.google.com/uc?id=1gHfrS1rnhnj3sHdnOM4vx04rcxucc74D&confirm=t', 'Justis', 'cmss60')
|
1759 |
+
# download_from_url('https://drive.google.com/uc?id=1PlQELpXawx74mEv9MYeREcyvwE7vFFe_&confirm=t', 'Kayana', 'cmss60')
|
1760 |
+
# download_from_url('https://drive.google.com/uc?id=16hJvfWAhuWWVEeXyDYt9PHJl-k_Kouxf&confirm=t', 'Prince', 'cmss60')
|
1761 |
+
# download_from_url('https://drive.google.com/uc?id=1zE1tP95_unNjVkqYb0aBt3AsBq_u9-R9&confirm=t', 'Lupe', 'cmss60')
|
1762 |
weight_root = "weights"
|
1763 |
index_root = "logs"
|
1764 |
names = []
|
|
|
1774 |
|
1775 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="HITGEN AI") as app:
|
1776 |
with gr.Tabs():
|
1777 |
+
with gr.TabItem("Voice Conversion"):
|
1778 |
+
# gr.HTML("<h1> Ilaria RVC 💖 </h1>")
|
1779 |
+
# gr.HTML("<h10> You can find voice models on AI Hub: https://discord.gg/aihub </h10>")
|
1780 |
+
# gr.HTML("<h4> Huggingface port by Ilaria of the Rejekt Easy GUI </h4>")
|
1781 |
+
|
1782 |
+
# Inference Preset Row
|
1783 |
+
# with gr.Row():
|
1784 |
+
# mangio_preset = gr.Dropdown(label="Inference Preset", choices=sorted(get_presets()))
|
1785 |
+
# mangio_preset_name_save = gr.Textbox(
|
1786 |
+
# label="Your preset name"
|
1787 |
+
# )
|
1788 |
+
# mangio_preset_save_btn = gr.Button('Save Preset', variant="primary")
|
1789 |
+
|
1790 |
+
# Other RVC stuff
|
1791 |
+
with gr.Row():
|
1792 |
+
sid0 = gr.Dropdown(label="1. Choose your model", choices=sorted(names), value=check_for_name())
|
1793 |
+
refresh_button = gr.Button("Refresh", variant="primary")
|
1794 |
+
if check_for_name() != '':
|
1795 |
+
get_vc(sorted(names)[0])
|
1796 |
+
vc_transform0 = gr.Number(label="Key Shift: 0 for no key shifted output; 12 f for output an octave higher and -12 for output an octave lower.", value=0)
|
1797 |
+
#clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
|
1798 |
+
spk_item = gr.Slider(
|
1799 |
+
minimum=0,
|
1800 |
+
maximum=2333,
|
1801 |
+
step=1,
|
1802 |
+
label="",
|
1803 |
+
value=0,
|
1804 |
+
visible=False,
|
1805 |
+
interactive=True,
|
1806 |
+
)
|
1807 |
+
#clean_button.click(fn=clean, inputs=[], outputs=[sid0])
|
1808 |
+
sid0.change(
|
1809 |
+
fn=get_vc,
|
1810 |
+
inputs=[sid0],
|
1811 |
+
outputs=[spk_item],
|
1812 |
+
)
|
1813 |
+
but0 = gr.Button("Convert", variant="primary")
|
1814 |
+
with gr.Row():
|
1815 |
+
with gr.Column():
|
1816 |
+
with gr.Row():
|
1817 |
+
dropbox = gr.File(label="Drag your audio file and click refresh.")
|
1818 |
+
with gr.Row():
|
1819 |
+
record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
|
1820 |
+
with gr.Row():
|
1821 |
+
input_audio0 = gr.Dropdown(
|
1822 |
+
label="2.Choose the audio file.",
|
1823 |
+
value="./audios/Test_Audio.mp3",
|
1824 |
+
choices=audio_files
|
1825 |
+
)
|
1826 |
+
dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0])
|
1827 |
+
dropbox.upload(fn=change_choices2, inputs=[], outputs=[input_audio0])
|
1828 |
+
refresh_button2 = gr.Button("Refresh", variant="primary", size='sm')
|
1829 |
+
record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
|
1830 |
+
record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
|
1831 |
+
# with gr.Row():
|
1832 |
+
# with gr.Accordion('ElevenLabs / Google TTS', open=False):
|
1833 |
+
# with gr.Column():
|
1834 |
+
# lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['en','it','es','fr','pt','zh-CN','de','hi','ja'], value='en')
|
1835 |
+
# api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
|
1836 |
+
# elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices)
|
1837 |
+
# with gr.Column():
|
1838 |
+
# tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
1839 |
+
# tts_button = gr.Button(value="Speak")
|
1840 |
+
# tts_button.click(fn=elevenTTS, inputs=[api_box,tfs, elevenid, lang], outputs=[record_button, input_audio0])
|
1841 |
+
# with gr.Row():
|
1842 |
+
# with gr.Accordion('Wav2Lip', open=False, visible=False):
|
1843 |
+
# with gr.Row():
|
1844 |
+
# size = gr.Radio(label='Resolution:',choices=['Half','Full'])
|
1845 |
+
# face = gr.UploadButton("Upload A Character",type='file')
|
1846 |
+
# faces = gr.Dropdown(label="OR Choose one:", choices=['None','Ben Shapiro','Andrew Tate'])
|
1847 |
+
# with gr.Row():
|
1848 |
+
# preview = gr.Textbox(label="Status:",interactive=False)
|
1849 |
+
# face.upload(fn=success_message,inputs=[face], outputs=[preview, faces])
|
1850 |
+
# with gr.Row():
|
1851 |
+
# animation = gr.Video(type='filepath')
|
1852 |
+
# refresh_button2.click(fn=change_choices2, inputs=[], outputs=[input_audio0, animation])
|
1853 |
+
# with gr.Row():
|
1854 |
+
# animate_button = gr.Button('Animate')
|
1855 |
+
|
1856 |
+
with gr.Column():
|
1857 |
+
vc_output2 = gr.Audio(
|
1858 |
+
label="Final Result! (Click on the three dots to download the audio)",
|
1859 |
+
type='filepath',
|
1860 |
+
interactive=False,
|
1861 |
+
)
|
1862 |
+
|
1863 |
+
# with gr.Accordion('IlariaTTS', open=True):
|
1864 |
+
# with gr.Column():
|
1865 |
+
# ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="English-Jenny (Female)")
|
1866 |
+
# ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
1867 |
+
# ilariatts_button = gr.Button(value="Speak")
|
1868 |
+
# ilariatts_button.click(fn=ilariaTTS, inputs=[ilariatext, ilariaid], outputs=[record_button, input_audio0])
|
1869 |
+
|
1870 |
+
#with gr.Column():
|
1871 |
+
with gr.Accordion("Index Settings", open=False):
|
1872 |
+
#with gr.Row():
|
1873 |
+
|
1874 |
+
file_index1 = gr.Dropdown(
|
1875 |
+
label="3. Choose the index file (in case it wasn't automatically found.)",
|
1876 |
+
choices=get_indexes(),
|
1877 |
+
value=get_index(),
|
1878 |
+
interactive=True,
|
1879 |
+
)
|
1880 |
+
sid0.change(fn=match_index, inputs=[sid0],outputs=[file_index1])
|
1881 |
+
refresh_button.click(
|
1882 |
+
fn=change_choices, inputs=[], outputs=[sid0, file_index1]
|
1883 |
+
)
|
1884 |
+
# file_big_npy1 = gr.Textbox(
|
1885 |
+
# label=i18n("特征文件路径"),
|
1886 |
+
# value="E:\\codes\py39\\vits_vc_gpu_train\\logs\\mi-test-1key\\total_fea.npy",
|
1887 |
+
# interactive=True,
|
1888 |
+
# )
|
1889 |
+
index_rate1 = gr.Slider(
|
1890 |
+
minimum=0,
|
1891 |
+
maximum=1,
|
1892 |
+
label="",
|
1893 |
+
value=0,
|
1894 |
+
interactive=True,
|
1895 |
+
)
|
1896 |
+
|
1897 |
+
# animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
|
1898 |
+
|
1899 |
+
with gr.Accordion("Advanced Options", open=False):
|
1900 |
+
f0method0 = gr.Radio(
|
1901 |
+
label="Optional: Change the Pitch Extraction Algorithm. Extraction methods are sorted from 'worst quality' to 'best quality'. If you don't know what you're doing, leave rmvpe.",
|
1902 |
+
choices=["pm", "dio", "crepe-tiny", "mangio-crepe-tiny", "crepe", "harvest", "mangio-crepe", "rmvpe"], # Fork Feature. Add Crepe-Tiny
|
1903 |
+
value="rmvpe",
|
1904 |
+
interactive=True,
|
1905 |
+
)
|
1906 |
+
|
1907 |
+
crepe_hop_length = gr.Slider(
|
1908 |
+
minimum=1,
|
1909 |
+
maximum=512,
|
1910 |
+
step=1,
|
1911 |
+
label="Mangio-Crepe Hop Length. Higher numbers will reduce the chance of extreme pitch changes but lower numbers will increase accuracy. 64-192 is a good range to experiment with.",
|
1912 |
+
value=120,
|
1913 |
+
interactive=True,
|
1914 |
+
visible=False,
|
1915 |
+
)
|
1916 |
+
f0method0.change(fn=whethercrepeornah, inputs=[f0method0], outputs=[crepe_hop_length])
|
1917 |
+
filter_radius0 = gr.Slider(
|
1918 |
+
minimum=0,
|
1919 |
+
maximum=7,
|
1920 |
+
label="",
|
1921 |
+
value=3,
|
1922 |
+
step=1,
|
1923 |
+
interactive=True,
|
1924 |
+
)
|
1925 |
+
resample_sr0 = gr.Slider(
|
1926 |
+
minimum=0,
|
1927 |
+
maximum=48000,
|
1928 |
+
label="",
|
1929 |
+
value=0,
|
1930 |
+
step=1,
|
1931 |
+
interactive=True,
|
1932 |
+
visible=False
|
1933 |
+
)
|
1934 |
+
rms_mix_rate0 = gr.Slider(
|
1935 |
+
minimum=0,
|
1936 |
+
maximum=1,
|
1937 |
+
label="",
|
1938 |
+
value=0.21,
|
1939 |
+
interactive=True,
|
1940 |
+
)
|
1941 |
+
protect0 = gr.Slider(
|
1942 |
+
minimum=0,
|
1943 |
+
maximum=0.5,
|
1944 |
+
label="",
|
1945 |
+
value=0,
|
1946 |
+
step=0.01,
|
1947 |
+
interactive=True,
|
1948 |
+
)
|
1949 |
+
formanting = gr.Checkbox(
|
1950 |
+
value=bool(DoFormant),
|
1951 |
+
label="[EXPERIMENTAL] Formant shift inference audio",
|
1952 |
+
info="Used for male to female and vice-versa conversions",
|
1953 |
+
interactive=True,
|
1954 |
+
visible=True,
|
1955 |
+
)
|
1956 |
+
|
1957 |
+
formant_preset = gr.Dropdown(
|
1958 |
+
value='',
|
1959 |
+
choices=get_fshift_presets(),
|
1960 |
+
label="browse presets for formanting",
|
1961 |
+
visible=bool(DoFormant),
|
1962 |
+
)
|
1963 |
+
formant_refresh_button = gr.Button(
|
1964 |
+
value='\U0001f504',
|
1965 |
+
visible=bool(DoFormant),
|
1966 |
+
variant='primary',
|
1967 |
+
)
|
1968 |
+
#formant_refresh_button = ToolButton( elem_id='1')
|
1969 |
+
#create_refresh_button(formant_preset, lambda: {"choices": formant_preset}, "refresh_list_shiftpresets")
|
1970 |
+
|
1971 |
+
qfrency = gr.Slider(
|
1972 |
+
value=Quefrency,
|
1973 |
+
info="Default value is 1.0",
|
1974 |
+
label="Frequency for formant shifting",
|
1975 |
+
minimum=0.0,
|
1976 |
+
maximum=16.0,
|
1977 |
+
step=0.1,
|
1978 |
+
visible=bool(DoFormant),
|
1979 |
+
interactive=True,
|
1980 |
+
)
|
1981 |
+
tmbre = gr.Slider(
|
1982 |
+
value=Timbre,
|
1983 |
+
info="Default value is 1.0",
|
1984 |
+
label="Timbre for formant shifting",
|
1985 |
+
minimum=0.0,
|
1986 |
+
maximum=16.0,
|
1987 |
+
step=0.1,
|
1988 |
+
visible=bool(DoFormant),
|
1989 |
+
interactive=True,
|
1990 |
+
)
|
1991 |
+
|
1992 |
+
formant_preset.change(fn=preset_apply, inputs=[formant_preset, qfrency, tmbre], outputs=[qfrency, tmbre])
|
1993 |
+
frmntbut = gr.Button("Apply", variant="primary", visible=bool(DoFormant))
|
1994 |
+
formanting.change(fn=formant_enabled,inputs=[formanting,qfrency,tmbre,frmntbut,formant_preset,formant_refresh_button],outputs=[formanting,qfrency,tmbre,frmntbut,formant_preset,formant_refresh_button])
|
1995 |
+
frmntbut.click(fn=formant_apply,inputs=[qfrency, tmbre], outputs=[qfrency, tmbre])
|
1996 |
+
formant_refresh_button.click(fn=update_fshift_presets,inputs=[formant_preset, qfrency, tmbre],outputs=[formant_preset, qfrency, tmbre])
|
1997 |
+
|
1998 |
+
with gr.Row():
|
1999 |
+
vc_output1 = gr.Textbox("")
|
2000 |
+
f0_file = gr.File(label="", visible=False)
|
2001 |
+
|
2002 |
+
but0.click(
|
2003 |
+
vc_single,
|
2004 |
+
[
|
2005 |
+
spk_item,
|
2006 |
+
input_audio0,
|
2007 |
+
vc_transform0,
|
2008 |
+
f0_file,
|
2009 |
+
f0method0,
|
2010 |
+
file_index1,
|
2011 |
+
# file_index2,
|
2012 |
+
# file_big_npy1,
|
2013 |
+
index_rate1,
|
2014 |
+
filter_radius0,
|
2015 |
+
resample_sr0,
|
2016 |
+
rms_mix_rate0,
|
2017 |
+
protect0,
|
2018 |
+
crepe_hop_length
|
2019 |
+
],
|
2020 |
+
[vc_output1, vc_output2],
|
2021 |
+
)
|
2022 |
+
|
2023 |
+
with gr.Accordion("Batch Conversion",open=False, visible=False):
|
2024 |
+
with gr.Row():
|
2025 |
+
with gr.Column():
|
2026 |
+
vc_transform1 = gr.Number(
|
2027 |
+
label="", value=0
|
2028 |
+
)
|
2029 |
+
opt_input = gr.Textbox(label="", value="opt")
|
2030 |
+
f0method1 = gr.Radio(
|
2031 |
+
label="",
|
2032 |
+
choices=["pm", "harvest", "crepe", "rmvpe"],
|
2033 |
+
value="rmvpe",
|
2034 |
+
interactive=True,
|
2035 |
+
)
|
2036 |
+
filter_radius1 = gr.Slider(
|
2037 |
+
minimum=0,
|
2038 |
+
maximum=7,
|
2039 |
+
label="",
|
2040 |
+
value=3,
|
2041 |
+
step=1,
|
2042 |
+
interactive=True,
|
2043 |
+
)
|
2044 |
+
with gr.Column():
|
2045 |
+
file_index3 = gr.Textbox(
|
2046 |
+
label="",
|
2047 |
+
value="",
|
2048 |
+
interactive=True,
|
2049 |
+
)
|
2050 |
+
file_index4 = gr.Dropdown(
|
2051 |
+
label="",
|
2052 |
+
choices=sorted(index_paths),
|
2053 |
+
interactive=True,
|
2054 |
+
)
|
2055 |
+
refresh_button.click(
|
2056 |
+
fn=lambda: change_choices()[1],
|
2057 |
+
inputs=[],
|
2058 |
+
outputs=file_index4,
|
2059 |
+
)
|
2060 |
+
# file_big_npy2 = gr.Textbox(
|
2061 |
+
# label=i18n("特征文件路径"),
|
2062 |
+
# value="E:\\codes\\py39\\vits_vc_gpu_train\\logs\\mi-test-1key\\total_fea.npy",
|
2063 |
+
# interactive=True,
|
2064 |
+
# )
|
2065 |
+
index_rate2 = gr.Slider(
|
2066 |
+
minimum=0,
|
2067 |
+
maximum=1,
|
2068 |
+
label="",
|
2069 |
+
value=1,
|
2070 |
+
interactive=True,
|
2071 |
+
)
|
2072 |
+
with gr.Column():
|
2073 |
+
resample_sr1 = gr.Slider(
|
2074 |
+
minimum=0,
|
2075 |
+
maximum=48000,
|
2076 |
+
label="",
|
2077 |
+
value=0,
|
2078 |
+
step=1,
|
2079 |
+
interactive=True,
|
2080 |
+
)
|
2081 |
+
rms_mix_rate1 = gr.Slider(
|
2082 |
+
minimum=0,
|
2083 |
+
maximum=1,
|
2084 |
+
label="",
|
2085 |
+
value=1,
|
2086 |
+
interactive=True,
|
2087 |
+
)
|
2088 |
+
protect1 = gr.Slider(
|
2089 |
+
minimum=0,
|
2090 |
+
maximum=0.5,
|
2091 |
+
label="",
|
2092 |
+
value=0.33,
|
2093 |
+
step=0.01,
|
2094 |
+
interactive=True,
|
2095 |
+
)
|
2096 |
+
with gr.Column():
|
2097 |
+
dir_input = gr.Textbox(
|
2098 |
+
label="",
|
2099 |
+
value="E:\codes\py39\\test-20230416b\\todo-songs",
|
2100 |
+
)
|
2101 |
+
inputs = gr.File(
|
2102 |
+
file_count="multiple", label=""
|
2103 |
+
)
|
2104 |
+
with gr.Row():
|
2105 |
+
format1 = gr.Radio(
|
2106 |
+
label="",
|
2107 |
+
choices=["wav", "flac", "mp3", "m4a"],
|
2108 |
+
value="flac",
|
2109 |
+
interactive=True,
|
2110 |
+
)
|
2111 |
+
but1 = gr.Button("", variant="primary")
|
2112 |
+
vc_output3 = gr.Textbox(label="")
|
2113 |
+
but1.click(
|
2114 |
+
vc_multi,
|
2115 |
+
[
|
2116 |
+
spk_item,
|
2117 |
+
dir_input,
|
2118 |
+
opt_input,
|
2119 |
+
inputs,
|
2120 |
+
vc_transform1,
|
2121 |
+
f0method1,
|
2122 |
+
file_index3,
|
2123 |
+
file_index4,
|
2124 |
+
# file_big_npy2,
|
2125 |
+
index_rate2,
|
2126 |
+
filter_radius1,
|
2127 |
+
resample_sr1,
|
2128 |
+
rms_mix_rate1,
|
2129 |
+
protect1,
|
2130 |
+
format1,
|
2131 |
+
crepe_hop_length,
|
2132 |
+
],
|
2133 |
+
[vc_output3],
|
2134 |
+
)
|
2135 |
+
but1.click(fn=lambda: easy_uploader.clear())
|
2136 |
+
with gr.TabItem("TTS"):
|
2137 |
app.load(update_message)
|
2138 |
|
2139 |
# Other RVC stuff
|
|
|
2815 |
"-------------------------------\n"
|
2816 |
)
|
2817 |
|
2818 |
+
app.queue(concurrency_count=511, max_size=1022).launch(share=False, quiet=False, auth=[('jvke', 'thisfeelslikeai')])
|
2819 |
#endregion
|