Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,9 @@ logger.info(f"Using output directory: {OUTPUT_DIR}")
|
|
65 |
logger.info(f"Using upload directory: {UPLOAD_DIR}")
|
66 |
logger.info(f"Using static directory: {STATIC_DIR}")
|
67 |
|
|
|
|
|
|
|
68 |
# Copy default audio files to static directory
|
69 |
DEFAULT_AUDIO_FILES = {
|
70 |
"feynman.mp3": "professor_lectura_male.mp3",
|
|
|
65 |
logger.info(f"Using upload directory: {UPLOAD_DIR}")
|
66 |
logger.info(f"Using static directory: {STATIC_DIR}")
|
67 |
|
68 |
+
# Set environment variable to automatically accept TTS terms of service
|
69 |
+
os.environ["COQUI_TOS_AGREED"] = "1"
|
70 |
+
|
71 |
# Copy default audio files to static directory
|
72 |
DEFAULT_AUDIO_FILES = {
|
73 |
"feynman.mp3": "professor_lectura_male.mp3",
|