Spaces:
Running
Running
drewThomasson
commited on
Commit
•
de460b8
1
Parent(s):
5b848db
Update app.py
Browse files
app.py
CHANGED
@@ -624,7 +624,7 @@ def convert_chapters_to_audio_standard_model(chapters_dir, output_audio_dir, tar
|
|
624 |
|
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 = ebook_file.name
|
628 |
target_voice = target_voice_file.name if target_voice_file else None
|
629 |
custom_model = None
|
630 |
|
|
|
624 |
|
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 |
|