TIMBOVILL commited on
Commit
9bd129b
·
verified ·
1 Parent(s): 6cfaabb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1481,7 +1481,8 @@ def zip_downloader(model):
1481
  else:
1482
  return f'./weights/{model}.pth', "Could not find Index file."
1483
 
1484
- import gradio as gr
 
1485
 
1486
  theme = gr.themes.Soft(
1487
  primary_hue="orange",
@@ -1551,11 +1552,11 @@ with gr.Blocks(theme=theme) as app:
1551
 
1552
  # Other RVC stuff
1553
  with gr.Row():
1554
- sid0 = gr.Dropdown(label="1.Choose the model.", choices=sorted(names), value=check_for_name())
1555
  refresh_button = gr.Button("Refresh", variant="primary")
1556
  if check_for_name() != '':
1557
  get_vc(sorted(names)[0])
1558
- 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)
1559
  #clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
1560
  spk_item = gr.Slider(
1561
  minimum=0,
@@ -1591,7 +1592,7 @@ with gr.Blocks(theme=theme) as app:
1591
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1592
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1593
  with gr.Row():
1594
- with gr.Accordion('ElevenLabs / Google TTS', open=False):
1595
  with gr.Column():
1596
  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')
1597
  api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
@@ -1622,7 +1623,7 @@ with gr.Blocks(theme=theme) as app:
1622
  interactive=False,
1623
  )
1624
 
1625
- with gr.Accordion('IlariaTTS', open=True):
1626
  with gr.Column():
1627
  ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="English-Jenny (Female)")
1628
  ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")
 
1481
  else:
1482
  return f'./weights/{model}.pth', "Could not find Index file."
1483
 
1484
+ with open("poop.md", "r", encoding="utf8") as f:
1485
+ voicemodels = f.read()
1486
 
1487
  theme = gr.themes.Soft(
1488
  primary_hue="orange",
 
1552
 
1553
  # Other RVC stuff
1554
  with gr.Row():
1555
+ sid0 = gr.Dropdown(label="Choose your fart.", choices=sorted(names), value=check_for_name())
1556
  refresh_button = gr.Button("Refresh", variant="primary")
1557
  if check_for_name() != '':
1558
  get_vc(sorted(names)[0])
1559
+ vc_transform0 = gr.Number(label="Pitch: how squeaky you want your fart", value=0)
1560
  #clean_button = gr.Button(i18n("卸载音色省显存"), variant="primary")
1561
  spk_item = gr.Slider(
1562
  minimum=0,
 
1592
  record_button.change(fn=save_to_wav, inputs=[record_button], outputs=[input_audio0])
1593
  record_button.change(fn=change_choices2, inputs=[], outputs=[input_audio0])
1594
  with gr.Row():
1595
+ with gr.Accordion('ElevenFarts / Google TTF', open=False):
1596
  with gr.Column():
1597
  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')
1598
  api_box = gr.Textbox(label="Enter your API Key for ElevenLabs, or leave empty to use GoogleTTS", value='')
 
1623
  interactive=False,
1624
  )
1625
 
1626
+ with gr.Accordion('Text To Fart', open=True):
1627
  with gr.Column():
1628
  ilariaid=gr.Dropdown(label="Voice:", choices=ilariavoices, value="English-Jenny (Female)")
1629
  ilariatext = gr.Textbox(label="Input your Text", interactive=True, value="This is a test.")