Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- core/__init__.py +3 -0
core/__init__.py
CHANGED
@@ -359,6 +359,9 @@ def run_tts_script(
|
|
359 |
|
360 |
if os.path.exists(output_tts_path):
|
361 |
os.remove(output_tts_path)
|
|
|
|
|
|
|
362 |
|
363 |
command_tts = [
|
364 |
*map(
|
|
|
359 |
|
360 |
if os.path.exists(output_tts_path):
|
361 |
os.remove(output_tts_path)
|
362 |
+
dirname = os.path.dirname(output_tts_path)
|
363 |
+
if not os.path.exists(dirname):
|
364 |
+
os.makedirs(dirname)
|
365 |
|
366 |
command_tts = [
|
367 |
*map(
|