Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,9 @@ os.makedirs(UPLOAD_FOLDER, exist_ok=True)
|
|
17 |
os.makedirs(AUDIO_FOLDER, exist_ok=True)
|
18 |
os.makedirs(TRANSCRIPT_FOLDER, exist_ok=True)
|
19 |
|
|
|
|
|
|
|
20 |
# Load the Whisper model
|
21 |
model = whisper.load_model("base")
|
22 |
|
|
|
17 |
os.makedirs(AUDIO_FOLDER, exist_ok=True)
|
18 |
os.makedirs(TRANSCRIPT_FOLDER, exist_ok=True)
|
19 |
|
20 |
+
# Set environment variable for Whisper cache
|
21 |
+
os.environ["XDG_CACHE_HOME"] = "/app/.cache"
|
22 |
+
|
23 |
# Load the Whisper model
|
24 |
model = whisper.load_model("base")
|
25 |
|