kevinwang676 commited on
Commit
35ad180
·
1 Parent(s): b12941e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -355,7 +355,6 @@ while run_server:
355
  with gr.Column():
356
  gr.Markdown("[Voice Prompt Library](https://suno-ai.notion.site/8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c)")
357
  speaker = gr.Dropdown(speakers_list, value=speakers_list[0], label="Voice")
358
- speaker_custom = speakers_list[0]
359
 
360
  with gr.Column():
361
  text_temp = gr.Slider(0.1, 1.0, value=0.6, label="Generation Temperature", info="1.0 more diverse, 0.1 more conservative")
@@ -372,7 +371,6 @@ while run_server:
372
  with gr.Row():
373
  with gr.Column():
374
  tts_create_button = gr.Button("Generate")
375
- tts_custom_button = gr.Button("Voice Cloning")
376
  with gr.Column():
377
  hidden_checkbox = gr.Checkbox(visible=False)
378
  button_stop_generation = gr.Button("Stop generation")
@@ -442,8 +440,6 @@ while run_server:
442
  convert_to_ssml_button.click(convert_text_to_ssml, inputs=[input_text, speaker],outputs=input_text)
443
  gen_click = tts_create_button.click(generate_text_to_speech, inputs=[input_text, speaker, text_temp, waveform_temp, eos_prob, quick_gen_checkbox, complete_settings, seedcomponent, batchcount],outputs=output_audio)
444
  button_stop_generation.click(fn=None, inputs=None, outputs=None, cancels=[gen_click])
445
-
446
- tts_custom_button.click(generate_text_to_speech, inputs=[input_text, speaker_custom, text_temp, waveform_temp, eos_prob, quick_gen_checkbox, complete_settings, seedcomponent, batchcount],outputs=output_audio)
447
 
448
  # Javascript hack to display modal confirmation dialog
449
  js = "(x) => confirm('Are you sure? This will remove all files from output folder')"
 
355
  with gr.Column():
356
  gr.Markdown("[Voice Prompt Library](https://suno-ai.notion.site/8b8e8749ed514b0cbf3f699013548683?v=bc67cff786b04b50b3ceb756fd05f68c)")
357
  speaker = gr.Dropdown(speakers_list, value=speakers_list[0], label="Voice")
 
358
 
359
  with gr.Column():
360
  text_temp = gr.Slider(0.1, 1.0, value=0.6, label="Generation Temperature", info="1.0 more diverse, 0.1 more conservative")
 
371
  with gr.Row():
372
  with gr.Column():
373
  tts_create_button = gr.Button("Generate")
 
374
  with gr.Column():
375
  hidden_checkbox = gr.Checkbox(visible=False)
376
  button_stop_generation = gr.Button("Stop generation")
 
440
  convert_to_ssml_button.click(convert_text_to_ssml, inputs=[input_text, speaker],outputs=input_text)
441
  gen_click = tts_create_button.click(generate_text_to_speech, inputs=[input_text, speaker, text_temp, waveform_temp, eos_prob, quick_gen_checkbox, complete_settings, seedcomponent, batchcount],outputs=output_audio)
442
  button_stop_generation.click(fn=None, inputs=None, outputs=None, cancels=[gen_click])
 
 
443
 
444
  # Javascript hack to display modal confirmation dialog
445
  js = "(x) => confirm('Are you sure? This will remove all files from output folder')"