kevinwang676 commited on
Commit
49ed4a8
1 Parent(s): af2026a

return .npz file

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -388,6 +388,7 @@ while run_server:
388
  clone_voice_button = gr.Button("Create Voice")
389
  with gr.Row():
390
  dummy = gr.Text(label="Progress")
 
391
 
392
  with gr.Tab("Training Data Prepare"):
393
  gr.Markdown("This tab should be used to generate the training dataset. For Step 1 put some books into the inputtext folder in UTF-8 Text Format.")
@@ -443,7 +444,7 @@ while run_server:
443
  hidden_checkbox.change(delete_output_files, [hidden_checkbox], [hidden_checkbox])
444
 
445
  swap_voice_button.click(swap_voice_from_audio, inputs=[swap_audio_filename, speaker_swap, swap_tokenizer_lang, swap_seed, swap_batchcount], outputs=output_swap)
446
- clone_voice_button.click(clone_voice, inputs=[input_audio_filename, output_voice], outputs=dummy)
447
  training_prepare_button.click(training_prepare, inputs=[prepare_dropdown, prepare_semantics_number], outputs=dummytrd)
448
  train_button.click(start_training, inputs=[save_model_epoch, max_epochs], outputs=dummytrain)
449
  button_apply_settings.click(apply_settings, inputs=[themes, input_server_name, input_server_port, share_checkbox, input_desired_len, input_max_len, input_silence_break, input_silence_speakers])
 
388
  clone_voice_button = gr.Button("Create Voice")
389
  with gr.Row():
390
  dummy = gr.Text(label="Progress")
391
+ npz_file = gr.File(label=".npz file")
392
 
393
  with gr.Tab("Training Data Prepare"):
394
  gr.Markdown("This tab should be used to generate the training dataset. For Step 1 put some books into the inputtext folder in UTF-8 Text Format.")
 
444
  hidden_checkbox.change(delete_output_files, [hidden_checkbox], [hidden_checkbox])
445
 
446
  swap_voice_button.click(swap_voice_from_audio, inputs=[swap_audio_filename, speaker_swap, swap_tokenizer_lang, swap_seed, swap_batchcount], outputs=output_swap)
447
+ clone_voice_button.click(clone_voice, inputs=[input_audio_filename, output_voice], outputs=[dummy, npz_file])
448
  training_prepare_button.click(training_prepare, inputs=[prepare_dropdown, prepare_semantics_number], outputs=dummytrd)
449
  train_button.click(start_training, inputs=[save_model_epoch, max_epochs], outputs=dummytrain)
450
  button_apply_settings.click(apply_settings, inputs=[themes, input_server_name, input_server_port, share_checkbox, input_desired_len, input_max_len, input_silence_break, input_silence_speakers])