hexgrad commited on
Commit
65d171f
·
verified ·
1 Parent(s): bc777ff

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -140,7 +140,7 @@ VOICES = {device: {k: torch.load(os.path.join(snapshot, 'voicepacks', f'{k}.pt')
140
  def resolve_voices(voice, warn=True):
141
  if not isinstance(voice, str) or voice == list(CHOICES.keys())[0]:
142
  return ['af']
143
- voices = voice.lower().replace('/', '_').replace(' ', '+').replace(',', '+').split('+')
144
  if warn:
145
  unks = {v for v in voices if v and v not in VOICES['cpu']}
146
  if unks:
@@ -310,7 +310,7 @@ with gr.Blocks() as basic_tts:
310
  with gr.Accordion('Output Tokens', open=True):
311
  out_ps = gr.Textbox(interactive=False, show_label=False, info='Tokens used to generate the audio, up to 510 allowed. Same as input tokens if supplied, excluding unknowns.')
312
  with gr.Accordion('Voice Mixer', open=False):
313
- gr.Markdown('Create a custom voice by mixing and matching other voices. Click an orange button to add one part to your mix, or click a gray button to start over. Free text input also allowed.')
314
  for i in range(8):
315
  with gr.Row():
316
  for j in range(4):
 
140
  def resolve_voices(voice, warn=True):
141
  if not isinstance(voice, str) or voice == list(CHOICES.keys())[0]:
142
  return ['af']
143
+ voices = voice.lower().replace(' ', '+').replace(',', '+').split('+')
144
  if warn:
145
  unks = {v for v in voices if v and v not in VOICES['cpu']}
146
  if unks:
 
310
  with gr.Accordion('Output Tokens', open=True):
311
  out_ps = gr.Textbox(interactive=False, show_label=False, info='Tokens used to generate the audio, up to 510 allowed. Same as input tokens if supplied, excluding unknowns.')
312
  with gr.Accordion('Voice Mixer', open=False):
313
+ gr.Markdown('Create a custom voice by mixing and matching other voices. Click an orange button to add one part to your mix, or click a gray button to start over. You can also enter a voice mix as text.')
314
  for i in range(8):
315
  with gr.Row():
316
  for j in range(4):