ajayarora1235
commited on
Commit
•
a3a63dd
1
Parent(s):
a6a9265
make custom app for jvke
Browse files
app.py
CHANGED
@@ -1484,9 +1484,9 @@ def zip_downloader(model):
|
|
1484 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
|
1485 |
with gr.Tabs():
|
1486 |
with gr.TabItem("Inference"):
|
1487 |
-
gr.HTML("<h1> Ilaria RVC 💖 </h1>")
|
1488 |
-
gr.HTML("<h10> You can find voice models on AI Hub: https://discord.gg/aihub </h10>")
|
1489 |
-
gr.HTML("<h4> Huggingface port by Ilaria of the Rejekt Easy GUI </h4>")
|
1490 |
|
1491 |
# Inference Preset Row
|
1492 |
# with gr.Row():
|
@@ -1498,11 +1498,11 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
1498 |
|
1499 |
# Other RVC stuff
|
1500 |
with gr.Row():
|
1501 |
-
sid0 = gr.Dropdown(label="1.Choose
|
1502 |
refresh_button = gr.Button("Refresh", variant="primary")
|
1503 |
if check_for_name() != '':
|
1504 |
get_vc(sorted(names)[0])
|
1505 |
-
vc_transform0 = gr.Number(label="
|
1506 |
#clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
|
1507 |
spk_item = gr.Slider(
|
1508 |
minimum=0,
|
@@ -1526,41 +1526,41 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
1526 |
dropbox = gr.File(label="Drag your audio file and click refresh.")
|
1527 |
with gr.Row():
|
1528 |
record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
|
1529 |
-
with gr.Row():
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
with gr.Row():
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
with gr.Row():
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
|
1565 |
with gr.Column():
|
1566 |
vc_output2 = gr.Audio(
|
@@ -1569,12 +1569,12 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
1569 |
interactive=False,
|
1570 |
)
|
1571 |
|
1572 |
-
with gr.Accordion('IlariaTTS', open=True):
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
|
1579 |
#with gr.Column():
|
1580 |
with gr.Accordion("Index Settings", open=False):
|
@@ -1599,11 +1599,11 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
1599 |
minimum=0,
|
1600 |
maximum=1,
|
1601 |
label=i18n("检索特征占比"),
|
1602 |
-
value=0
|
1603 |
interactive=True,
|
1604 |
)
|
1605 |
|
1606 |
-
animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
|
1607 |
|
1608 |
with gr.Accordion("Advanced Options", open=False):
|
1609 |
f0method0 = gr.Radio(
|
@@ -1651,7 +1651,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
1651 |
minimum=0,
|
1652 |
maximum=0.5,
|
1653 |
label=i18n("保护清辅音和呼吸声,防止电音撕裂等artifact,拉满0.5不开启,调低加大保护力度但可能降低索引效果"),
|
1654 |
-
value=0
|
1655 |
step=0.01,
|
1656 |
interactive=True,
|
1657 |
)
|
@@ -1680,7 +1680,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
1680 |
qfrency = gr.Slider(
|
1681 |
value=Quefrency,
|
1682 |
info="Default value is 1.0",
|
1683 |
-
label="
|
1684 |
minimum=0.0,
|
1685 |
maximum=16.0,
|
1686 |
step=0.1,
|
@@ -1855,12 +1855,6 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose")
|
|
1855 |
with gr.Row():
|
1856 |
status_bar=gr.Textbox(label="Download Status")
|
1857 |
download_button.click(fn=download_from_url, inputs=[url, model], outputs=[status_bar])
|
1858 |
-
with gr.Row():
|
1859 |
-
gr.Markdown(
|
1860 |
-
"""
|
1861 |
-
Made with 💖 by Ilaria | Support her on [Ko-Fi](https://ko-fi.com/ilariaowo)
|
1862 |
-
"""
|
1863 |
-
)
|
1864 |
|
1865 |
def has_two_files_in_pretrained_folder():
|
1866 |
pretrained_folder = "./pretrained/"
|
|
|
1484 |
with gr.Blocks(theme=gr.themes.Default(primary_hue="pink", secondary_hue="rose"), title="Ilaria RVC 💖") as app:
|
1485 |
with gr.Tabs():
|
1486 |
with gr.TabItem("Inference"):
|
1487 |
+
# gr.HTML("<h1> Ilaria RVC 💖 </h1>")
|
1488 |
+
# gr.HTML("<h10> You can find voice models on AI Hub: https://discord.gg/aihub </h10>")
|
1489 |
+
# gr.HTML("<h4> Huggingface port by Ilaria of the Rejekt Easy GUI </h4>")
|
1490 |
|
1491 |
# Inference Preset Row
|
1492 |
# with gr.Row():
|
|
|
1498 |
|
1499 |
# Other RVC stuff
|
1500 |
with gr.Row():
|
1501 |
+
sid0 = gr.Dropdown(label="1. Choose your model", choices=sorted(names), value=check_for_name())
|
1502 |
refresh_button = gr.Button("Refresh", variant="primary")
|
1503 |
if check_for_name() != '':
|
1504 |
get_vc(sorted(names)[0])
|
1505 |
+
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)
|
1506 |
#clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
|
1507 |
spk_item = gr.Slider(
|
1508 |
minimum=0,
|
|
|
1526 |
dropbox = gr.File(label="Drag your audio file and click refresh.")
|
1527 |
with gr.Row():
|
1528 |
record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
|
1529 |
+
# with gr.Row():
|
1530 |
+
# input_audio0 = gr.Dropdown(
|
1531 |
+
# label="2.Choose the audio file.",
|
1532 |
+
# value="./audios/Test_Audio.mp3",
|
1533 |
+
# choices=audio_files
|
1534 |
+
# )
|
1535 |
+
# dropbox.upload(fn=save_to_wav2, inputs=[dropbox], outputs=[input_audio0])
|
1536 |
+
# dropbox.upload(fn=change_choices2, inputs=[], outputs=[input_audio0])
|
1537 |
+
# refresh_button2 = gr.Button("Refresh", variant="primary", size='sm')
|
1538 |
+
# record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
|
1539 |
+
# record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
|
1540 |
+
# with gr.Row():
|
1541 |
+
# with gr.Accordion('ElevenLabs / Google TTS', open=False):
|
1542 |
+
# with gr.Column():
|
1543 |
+
# 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')
|
1544 |
+
# api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
|
1545 |
+
# elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices)
|
1546 |
+
# with gr.Column():
|
1547 |
+
# tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
1548 |
+
# tts_button = gr.Button(value="Speak")
|
1549 |
+
# tts_button.click(fn=elevenTTS, inputs=[api_box,tfs, elevenid, lang], outputs=[record_button, input_audio0])
|
1550 |
+
# with gr.Row():
|
1551 |
+
# with gr.Accordion('Wav2Lip', open=False, visible=False):
|
1552 |
+
# with gr.Row():
|
1553 |
+
# size = gr.Radio(label='Resolution:',choices=['Half','Full'])
|
1554 |
+
# face = gr.UploadButton("Upload A Character",type='file')
|
1555 |
+
# faces = gr.Dropdown(label="OR Choose one:", choices=['None','Ben Shapiro','Andrew Tate'])
|
1556 |
+
# with gr.Row():
|
1557 |
+
# preview = gr.Textbox(label="Status:",interactive=False)
|
1558 |
+
# face.upload(fn=success_message,inputs=[face], outputs=[preview, faces])
|
1559 |
+
# with gr.Row():
|
1560 |
+
# animation = gr.Video(type='filepath')
|
1561 |
+
# refresh_button2.click(fn=change_choices2, inputs=[], outputs=[input_audio0, animation])
|
1562 |
+
# with gr.Row():
|
1563 |
+
# animate_button = gr.Button('Animate')
|
1564 |
|
1565 |
with gr.Column():
|
1566 |
vc_output2 = gr.Audio(
|
|
|
1569 |
interactive=False,
|
1570 |
)
|
1571 |
|
1572 |
+
# with gr.Accordion('IlariaTTS', open=True):
|
1573 |
+
# with gr.Column():
|
1574 |
+
# ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="English-Jenny (Female)")
|
1575 |
+
# ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
1576 |
+
# ilariatts_button = gr.Button(value="Speak")
|
1577 |
+
# ilariatts_button.click(fn=ilariaTTS, inputs=[ilariatext, ilariaid], outputs=[record_button, input_audio0])
|
1578 |
|
1579 |
#with gr.Column():
|
1580 |
with gr.Accordion("Index Settings", open=False):
|
|
|
1599 |
minimum=0,
|
1600 |
maximum=1,
|
1601 |
label=i18n("检索特征占比"),
|
1602 |
+
value=0,
|
1603 |
interactive=True,
|
1604 |
)
|
1605 |
|
1606 |
+
# animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
|
1607 |
|
1608 |
with gr.Accordion("Advanced Options", open=False):
|
1609 |
f0method0 = gr.Radio(
|
|
|
1651 |
minimum=0,
|
1652 |
maximum=0.5,
|
1653 |
label=i18n("保护清辅音和呼吸声,防止电音撕裂等artifact,拉满0.5不开启,调低加大保护力度但可能降低索引效果"),
|
1654 |
+
value=0,
|
1655 |
step=0.01,
|
1656 |
interactive=True,
|
1657 |
)
|
|
|
1680 |
qfrency = gr.Slider(
|
1681 |
value=Quefrency,
|
1682 |
info="Default value is 1.0",
|
1683 |
+
label="Frequency for formant shifting",
|
1684 |
minimum=0.0,
|
1685 |
maximum=16.0,
|
1686 |
step=0.1,
|
|
|
1855 |
with gr.Row():
|
1856 |
status_bar=gr.Textbox(label="Download Status")
|
1857 |
download_button.click(fn=download_from_url, inputs=[url, model], outputs=[status_bar])
|
|
|
|
|
|
|
|
|
|
|
|
|
1858 |
|
1859 |
def has_two_files_in_pretrained_folder():
|
1860 |
pretrained_folder = "./pretrained/"
|