Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def filter_text(text):
|
|
18 |
def convert_text_to_speech(parrafo, model):
|
19 |
parrafo_filtrado = filter_text(parrafo)
|
20 |
bundle_dir = os.path.abspath(os.path.dirname(__file__))
|
21 |
-
random_name = ''.join(random.choices(string.ascii_letters + string.digits, k=8)) + '.wav'
|
22 |
output_file = os.path.join('.', random_name)
|
23 |
app.logger.info("Archivo de audio creado en: %s", output_file)
|
24 |
piper_exe = os.path.join(bundle_dir, './piper')
|
|
|
18 |
def convert_text_to_speech(parrafo, model):
|
19 |
parrafo_filtrado = filter_text(parrafo)
|
20 |
bundle_dir = os.path.abspath(os.path.dirname(__file__))
|
21 |
+
random_name = '/app/'.join(random.choices(string.ascii_letters + string.digits, k=8)) + '.wav'
|
22 |
output_file = os.path.join('.', random_name)
|
23 |
app.logger.info("Archivo de audio creado en: %s", output_file)
|
24 |
piper_exe = os.path.join(bundle_dir, './piper')
|