David Thomas
commited on
Commit
·
b292904
1
Parent(s):
c46b908
finally?
Browse files- app.py +12 -7
- audios/gitignore.txt +0 -0
app.py
CHANGED
@@ -1475,7 +1475,10 @@ with gr.Blocks(theme=gr.themes.Base(), title='RVC RULE1 v1') as app:
|
|
1475 |
global person
|
1476 |
with gr.Tabs():
|
1477 |
with gr.TabItem("Inference"):
|
1478 |
-
gr.HTML("<h1> RVC_RULE1 -- Humans First </h1>")
|
|
|
|
|
|
|
1479 |
gr.HTML("<h10> Huggingface version v1 -- DT </h10>")
|
1480 |
# gr.HTML("<h4> If you want to use this space privately, I recommend you duplicate the space. </h4>")
|
1481 |
|
@@ -1519,7 +1522,9 @@ with gr.Blocks(theme=gr.themes.Base(), title='RVC RULE1 v1') as app:
|
|
1519 |
record_button=gr.Audio(source="microphone", label="OR Record audio.", type="filepath")
|
1520 |
with gr.Row():
|
1521 |
input_audio0 = gr.Dropdown(
|
1522 |
-
label="2.Choose your audio.
|
|
|
|
|
1523 |
value="./audios/someguy.mp3",
|
1524 |
choices=audio_files
|
1525 |
)
|
@@ -1535,10 +1540,10 @@ with gr.Blocks(theme=gr.themes.Base(), title='RVC RULE1 v1') as app:
|
|
1535 |
# api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
|
1536 |
# elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices)
|
1537 |
# with gr.Column():
|
1538 |
-
#
|
1539 |
# tts_button = gr.Button(value="Speak")
|
1540 |
# tts_button.click(fn=elevenTTS, inputs=[api_box,tfs, elevenid, lang], outputs=[record_button, input_audio0])
|
1541 |
-
|
1542 |
# with gr.Accordion('Wav2Lip', open=False):
|
1543 |
# with gr.Row():
|
1544 |
# size = gr.Radio(label='Resolution:',choices=['Half','Full'])
|
@@ -1547,9 +1552,9 @@ with gr.Blocks(theme=gr.themes.Base(), title='RVC RULE1 v1') as app:
|
|
1547 |
# with gr.Row():
|
1548 |
# preview = gr.Textbox(label="Status:",interactive=False)
|
1549 |
# face.upload(fn=success_message,inputs=[face], outputs=[preview, faces])
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
# with gr.Row():
|
1554 |
# animate_button = gr.Button('Animate')
|
1555 |
|
|
|
1475 |
global person
|
1476 |
with gr.Tabs():
|
1477 |
with gr.TabItem("Inference"):
|
1478 |
+
gr.HTML("<h1> RVC_RULE1 -- Humans First </h1>")
|
1479 |
+
gr.HTML('<h4> Make sure you hit "Refresh" to load all of the models.\
|
1480 |
+
Once you have chosen "joel.pth" for Joel or "jenny.pth" for Jenny,\
|
1481 |
+
make sure the index setting to the right lines up with the chosen model.')
|
1482 |
gr.HTML("<h10> Huggingface version v1 -- DT </h10>")
|
1483 |
# gr.HTML("<h4> If you want to use this space privately, I recommend you duplicate the space. </h4>")
|
1484 |
|
|
|
1522 |
record_button=gr.Audio(source="microphone", label="OR Record audio.", type="filepath")
|
1523 |
with gr.Row():
|
1524 |
input_audio0 = gr.Dropdown(
|
1525 |
+
label="2.Choose your audio. Hit refresh if you do not see all of your\
|
1526 |
+
clips. Recorded audio will be saved as a wav file with the timestamp of\
|
1527 |
+
when you recorded it.",
|
1528 |
value="./audios/someguy.mp3",
|
1529 |
choices=audio_files
|
1530 |
)
|
|
|
1540 |
# api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
|
1541 |
# elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices)
|
1542 |
# with gr.Column():
|
1543 |
+
# tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
|
1544 |
# tts_button = gr.Button(value="Speak")
|
1545 |
# tts_button.click(fn=elevenTTS, inputs=[api_box,tfs, elevenid, lang], outputs=[record_button, input_audio0])
|
1546 |
+
with gr.Row():
|
1547 |
# with gr.Accordion('Wav2Lip', open=False):
|
1548 |
# with gr.Row():
|
1549 |
# size = gr.Radio(label='Resolution:',choices=['Half','Full'])
|
|
|
1552 |
# with gr.Row():
|
1553 |
# preview = gr.Textbox(label="Status:",interactive=False)
|
1554 |
# face.upload(fn=success_message,inputs=[face], outputs=[preview, faces])
|
1555 |
+
with gr.Row():
|
1556 |
+
animation = gr.Video(type='filepath')
|
1557 |
+
refresh_button2.click(fn=change_choices2, inputs=[], outputs=[input_audio0, animation])
|
1558 |
# with gr.Row():
|
1559 |
# animate_button = gr.Button('Animate')
|
1560 |
|
audios/gitignore.txt
DELETED
File without changes
|