Spaces:
Runtime error
Runtime error
Commit ·
103deba
1
Parent(s): 847ec6e
Fix uploads directory permissions
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ CACHE_DIR = 'cache'
|
|
| 18 |
UPLOAD_FOLDER = 'uploads'
|
| 19 |
ALLOWED_EXTENSIONS = {'wav', 'ogg', 'mp3', 'm4a'}
|
| 20 |
|
| 21 |
-
os.makedirs(
|
| 22 |
os.makedirs(CACHE_DIR, exist_ok=True)
|
| 23 |
|
| 24 |
# Disable SSL verification for model download
|
|
|
|
| 18 |
UPLOAD_FOLDER = 'uploads'
|
| 19 |
ALLOWED_EXTENSIONS = {'wav', 'ogg', 'mp3', 'm4a'}
|
| 20 |
|
| 21 |
+
os.makedirs("/tmp/uploads", exist_ok=True)
|
| 22 |
os.makedirs(CACHE_DIR, exist_ok=True)
|
| 23 |
|
| 24 |
# Disable SSL verification for model download
|