Spaces:
Running
Running
idk looking waht to fix for runtime error
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def convert_text_to_speech(parrafo, model):
|
|
50 |
if model_info:
|
51 |
model_path = model_info.get("model_path")
|
52 |
parrafo_filtrado = filter_text(parrafo)
|
53 |
-
random_name = ''.join(random.choices(string.ascii_letters + string.digits, k=8)) + '.wav'
|
54 |
output_file = os.path.join(file_folder, random_name)
|
55 |
app.logger.info("Audio file created at: %s", output_file)
|
56 |
piper_exe = os.path.join(file_folder, 'piper') # Adjusted the path for piper
|
|
|
50 |
if model_info:
|
51 |
model_path = model_info.get("model_path")
|
52 |
parrafo_filtrado = filter_text(parrafo)
|
53 |
+
random_name = ''.join(random.choices(str(string.ascii_letters) + str(string.digits), k=8)) + '.wav'
|
54 |
output_file = os.path.join(file_folder, random_name)
|
55 |
app.logger.info("Audio file created at: %s", output_file)
|
56 |
piper_exe = os.path.join(file_folder, 'piper') # Adjusted the path for piper
|