Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -17,9 +17,12 @@ app = Flask(__name__)
|
|
17 |
|
18 |
# Define el directorio donde se guardan los archivos
|
19 |
file_folder = getattr(sys, '_MEIPASS', os.path.abspath(os.path.dirname(__file__)))
|
20 |
-
temp_audio_folder = os.path.join(file_folder, 'temp_audio')
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
23 |
|
24 |
# Define los nombres asignados a modelos específicos
|
25 |
model_names = {
|
|
|
17 |
|
18 |
# Define el directorio donde se guardan los archivos
|
19 |
file_folder = getattr(sys, '_MEIPASS', os.path.abspath(os.path.dirname(__file__)))
|
20 |
+
#temp_audio_folder = os.path.join(file_folder, 'temp_audio')
|
21 |
+
temp_audio_folder= "/home/app/temp_audio/"
|
22 |
+
#model_folder = os.path.join(file_folder, 'models')
|
23 |
+
model_folder = "/home/app/models/"
|
24 |
+
#piper_binary_path = os.path.join(file_folder, 'piper', 'piper')
|
25 |
+
piper_binary_path = "/home/app/piper"
|
26 |
|
27 |
# Define los nombres asignados a modelos específicos
|
28 |
model_names = {
|