TIMBOVILL commited on
Commit
53cb39b
1 Parent(s): 24d38e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -1522,8 +1522,8 @@ with gr.Blocks(theme=theme) as app:
1522
 
1523
  # Other RVC stuff
1524
  with gr.Row():
1525
- sid0 = gr.Dropdown(label="1.Choose the model.", choices=sorted(names), value=check_for_name())
1526
- refresh_button = gr.Button("Refresh", variant="primary")
1527
  if check_for_name() != '':
1528
  get_vc(sorted(names)[0])
1529
  vc_transform0 = gr.Number(label="Pitch: 0 from man to man (or woman to woman); 12 from man to woman and -12 from woman to man.", value=0)
@@ -1552,7 +1552,7 @@ with gr.Blocks(theme=theme) as app:
1552
  record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
1553
  with gr.Row():
1554
  input_audio0 = gr.Dropdown(
1555
- label="2.Choose the audio file.",
1556
  value="./audios/Test_Audio.mp3",
1557
  choices=audio_files
1558
  )
@@ -1562,7 +1562,7 @@ with gr.Blocks(theme=theme) as app:
1562
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1563
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1564
  with gr.Row():
1565
- with gr.Accordion('ElevenLabs / Google TTS', open=False):
1566
  with gr.Column():
1567
  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')
1568
  api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
@@ -1593,7 +1593,7 @@ with gr.Blocks(theme=theme) as app:
1593
  interactive=False,
1594
  )
1595
 
1596
- with gr.Accordion('IlariaTTS', open=True):
1597
  with gr.Column():
1598
  ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="English-Jenny (Female)")
1599
  ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
@@ -1601,7 +1601,7 @@ with gr.Blocks(theme=theme) as app:
1601
  ilariatts_button.click(fn=ilariaTTS, inputs=[ilariatext, ilariaid], outputs=[record_button, input_audio0])
1602
 
1603
  #with gr.Column():
1604
- with gr.Accordion("Index Settings", open=False):
1605
  #with gr.Row():
1606
 
1607
  file_index1 = gr.Dropdown(
@@ -1609,6 +1609,7 @@ with gr.Blocks(theme=theme) as app:
1609
  choices=get_indexes(),
1610
  value=get_index(),
1611
  interactive=True,
 
1612
  )
1613
  sid0.change(fn=match_index, inputs=[sid0],outputs=[file_index1])
1614
  refresh_button.click(
@@ -1629,10 +1630,11 @@ with gr.Blocks(theme=theme) as app:
1629
 
1630
  animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
1631
 
1632
- with gr.Accordion("Advanced Options", open=False):
 
1633
  f0method0 = gr.Radio(
1634
  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.",
1635
- choices=["pm", "dio", "crepe-tiny", "mangio-crepe-tiny", "crepe", "harvest", "mangio-crepe", "rmvpe"], # Fork Feature. Add Crepe-Tiny
1636
  value="rmvpe",
1637
  interactive=True,
1638
  )
 
1522
 
1523
  # Other RVC stuff
1524
  with gr.Row():
1525
+ sid0 = gr.Dropdown(label="Choose the model.", choices=sorted(names), value=check_for_name())
1526
+ refresh_button = gr.Button("Refresh", variant="secondary")
1527
  if check_for_name() != '':
1528
  get_vc(sorted(names)[0])
1529
  vc_transform0 = gr.Number(label="Pitch: 0 from man to man (or woman to woman); 12 from man to woman and -12 from woman to man.", value=0)
 
1552
  record_button=gr.Audio(source="microphone", label="Or you can use your microphone!", type="filepath")
1553
  with gr.Row():
1554
  input_audio0 = gr.Dropdown(
1555
+ label="Choose the audio file.",
1556
  value="./audios/Test_Audio.mp3",
1557
  choices=audio_files
1558
  )
 
1562
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1563
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1564
  with gr.Row():
1565
+ with gr.Accordion('ElevenLabs / Google TTS', open=False, visible=False):
1566
  with gr.Column():
1567
  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')
1568
  api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
 
1593
  interactive=False,
1594
  )
1595
 
1596
+ with gr.Accordion('Text To Speech', open=True):
1597
  with gr.Column():
1598
  ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="English-Jenny (Female)")
1599
  ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
 
1601
  ilariatts_button.click(fn=ilariaTTS, inputs=[ilariatext, ilariaid], outputs=[record_button, input_audio0])
1602
 
1603
  #with gr.Column():
1604
+ with gr.Accordion("Advanced Settings", open=False):
1605
  #with gr.Row():
1606
 
1607
  file_index1 = gr.Dropdown(
 
1609
  choices=get_indexes(),
1610
  value=get_index(),
1611
  interactive=True,
1612
+ visible=false
1613
  )
1614
  sid0.change(fn=match_index, inputs=[sid0],outputs=[file_index1])
1615
  refresh_button.click(
 
1630
 
1631
  animate_button.click(fn=mouth, inputs=[size, face, vc_output2, faces], outputs=[animation, preview])
1632
 
1633
+ with gr.Accordion("Advanced Options", open=False, visible=False):
1634
+ with gr.Row()):
1635
  f0method0 = gr.Radio(
1636
  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.",
1637
+ choices=["rmvpe"], # Fork Feature. Add Crepe-Tiny
1638
  value="rmvpe",
1639
  interactive=True,
1640
  )