David Thomas commited on
Commit
c46b908
·
1 Parent(s): c63164d
Files changed (1) hide show
  1. app.py +26 -30
app.py CHANGED
@@ -1476,10 +1476,6 @@ with gr.Blocks(theme=gr.themes.Base(), title='RVC RULE1 v1') as app:
1476
  with gr.Tabs():
1477
  with gr.TabItem("Inference"):
1478
  gr.HTML("<h1> RVC_RULE1 -- Humans First </h1>")
1479
- gr.HTML('<h3>A few notes about this demo: Hit "Refresh" if you do not immediately see the model\
1480
- choices come up. Once you have chosen either Joel ("joel.pth") or Jenny ("jenny.pth"),\
1481
- make sure that your index setting to the right matches up with the model. For instance, if Joel is selected\
1482
- choose the index file that has joel in the file path.</h3>')
1483
  gr.HTML("<h10> Huggingface version v1 -- DT </h10>")
1484
  # gr.HTML("<h4> If you want to use this space privately, I recommend you duplicate the space. </h4>")
1485
 
@@ -1532,30 +1528,30 @@ with gr.Blocks(theme=gr.themes.Base(), title='RVC RULE1 v1') as app:
1532
  refresh_button2 = gr.Button("Refresh", variant="primary", size='sm')
1533
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1534
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1535
- '''with gr.Row():
1536
- with gr.Accordion('Text To Speech', open=False):
1537
- with gr.Column():
1538
- lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['en','es','fr','pt','zh-CN','de','hi','ja'], value='en')
1539
- api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
1540
- elevenid=gr.Dropdown(label="Voice:", choices=eleven_voices)
1541
- with gr.Column():
1542
- tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
1543
- tts_button = gr.Button(value="Speak")
1544
- tts_button.click(fn=elevenTTS, inputs=[api_box,tfs, elevenid, lang], outputs=[record_button, input_audio0])
1545
- with gr.Row():
1546
- with gr.Accordion('Wav2Lip', open=False):
1547
- with gr.Row():
1548
- size = gr.Radio(label='Resolution:',choices=['Half','Full'])
1549
- face = gr.UploadButton("Upload A Character",type='file')
1550
- faces = gr.Dropdown(label="OR Choose one:", choices=['None','Ben Shapiro','Andrew Tate'])
1551
- with gr.Row():
1552
- preview = gr.Textbox(label="Status:",interactive=False)
1553
- face.upload(fn=success_message,inputs=[face], outputs=[preview, faces])
1554
- with gr.Row():
1555
- animation = gr.Video(type='filepath')
1556
- refresh_button2.click(fn=change_choices2, inputs=[], outputs=[input_audio0, animation])
1557
- with gr.Row():
1558
- animate_button = gr.Button('Animate')'''
1559
 
1560
  with gr.Column():
1561
  with gr.Accordion("Index Settings", open=False):
@@ -1853,7 +1849,7 @@ with gr.Blocks(theme=gr.themes.Base(), title='RVC RULE1 v1') as app:
1853
  [vc_output3],
1854
  )
1855
  but1.click(fn=lambda: easy_uploader.clear())
1856
- '''with gr.TabItem("Download Model"):
1857
  with gr.Row():
1858
  url=gr.Textbox(label="Enter the URL to the Model:")
1859
  with gr.Row():
@@ -1868,7 +1864,7 @@ with gr.Blocks(theme=gr.themes.Base(), title='RVC RULE1 v1') as app:
1868
  """
1869
  Made with ❤️ by [Alice Oliveira](https://github.com/aliceoq) | Hosted with ❤️ by [Mateus Elias](https://github.com/mateuseap)
1870
  """
1871
- )'''
1872
 
1873
  def has_two_files_in_pretrained_folder():
1874
  pretrained_folder = "./pretrained/"
 
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
 
 
1528
  refresh_button2 = gr.Button("Refresh", variant="primary", size='sm')
1529
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1530
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1531
+ #with gr.Row():
1532
+ # with gr.Accordion('Text To Speech', open=False):
1533
+ # with gr.Column():
1534
+ # lang = gr.Radio(label='Chinese & Japanese do not work with ElevenLabs currently.',choices=['en','es','fr','pt','zh-CN','de','hi','ja'], value='en')
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
+ # tfs = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
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
+ #with gr.Row():
1542
+ # with gr.Accordion('Wav2Lip', open=False):
1543
+ # with gr.Row():
1544
+ # size = gr.Radio(label='Resolution:',choices=['Half','Full'])
1545
+ # face = gr.UploadButton("Upload A Character",type='file')
1546
+ # faces = gr.Dropdown(label="OR Choose one:", choices=['None','Ben Shapiro','Andrew Tate'])
1547
+ # with gr.Row():
1548
+ # preview = gr.Textbox(label="Status:",interactive=False)
1549
+ # face.upload(fn=success_message,inputs=[face], outputs=[preview, faces])
1550
+ # with gr.Row():
1551
+ # animation = gr.Video(type='filepath')
1552
+ # refresh_button2.click(fn=change_choices2, inputs=[], outputs=[input_audio0, animation])
1553
+ # with gr.Row():
1554
+ # animate_button = gr.Button('Animate')
1555
 
1556
  with gr.Column():
1557
  with gr.Accordion("Index Settings", open=False):
 
1849
  [vc_output3],
1850
  )
1851
  but1.click(fn=lambda: easy_uploader.clear())
1852
+ with gr.TabItem("Download Model"):
1853
  with gr.Row():
1854
  url=gr.Textbox(label="Enter the URL to the Model:")
1855
  with gr.Row():
 
1864
  """
1865
  Made with ❤️ by [Alice Oliveira](https://github.com/aliceoq) | Hosted with ❤️ by [Mateus Elias](https://github.com/mateuseap)
1866
  """
1867
+ )
1868
 
1869
  def has_two_files_in_pretrained_folder():
1870
  pretrained_folder = "./pretrained/"