drewThomasson commited on
Commit
8ef9bc4
·
verified ·
1 Parent(s): de460b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -625,7 +625,7 @@ def convert_chapters_to_audio_standard_model(chapters_dir, output_audio_dir, tar
625
  # Define the functions to be used in the Gradio interface
626
  def convert_ebook_to_audio(ebook_file, target_voice_file, language, use_custom_model, custom_model_file, custom_config_file, custom_vocab_file, custom_model_url=None, progress=gr.Progress()):
627
  ebook_file_path = args.ebook if args.ebook else ebook_file.name
628
- target_voice = target_voice_file.name if target_voice_file else None
629
  custom_model = None
630
 
631
 
 
625
  # Define the functions to be used in the Gradio interface
626
  def convert_ebook_to_audio(ebook_file, target_voice_file, language, use_custom_model, custom_model_file, custom_config_file, custom_vocab_file, custom_model_url=None, progress=gr.Progress()):
627
  ebook_file_path = args.ebook if args.ebook else ebook_file.name
628
+ target_voice = args.voice if args.voice else target_voice_file.name if target_voice_file else None
629
  custom_model = None
630
 
631