Elalimy commited on
Commit
9475b53
·
verified ·
1 Parent(s): 71bff0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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