HirCoir commited on
Commit
aba672f
1 Parent(s): b78f94d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,10 +18,10 @@ 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
- print("Cargando carpeta Modelos desde:", os.path.join(bundle_dir, 'Models'))
22
  random_name = ''.join(random.choices(string.ascii_letters + string.digits, k=8)) + '.wav'
23
  output_file = os.path.join('.', random_name)
24
- piper_exe = os.path.join(bundle_dir, './piper.exe')
25
  print("Ejecutando piper.exe desde:", piper_exe)
26
 
27
  if os.path.isfile(piper_exe):
 
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
+ print("Cargando carpeta Modelos desde:", os.path.join(bundle_dir, '.'))
22
  random_name = ''.join(random.choices(string.ascii_letters + string.digits, k=8)) + '.wav'
23
  output_file = os.path.join('.', random_name)
24
+ piper_exe = os.path.join(bundle_dir, './piper/piper')
25
  print("Ejecutando piper.exe desde:", piper_exe)
26
 
27
  if os.path.isfile(piper_exe):