devcom33 commited on
Commit
ba6063a
·
1 Parent(s): db36e68

fix libs issues

Browse files
Files changed (1) hide show
  1. models.py +1 -2
models.py CHANGED
@@ -16,8 +16,7 @@ def load_whisper(config):
16
  logger.info("Loading Whisper model...")
17
 
18
  try:
19
- # Use /app/cache or /tmp — both are writable on HF Spaces
20
- cache_dir = "/app/cache"
21
  os.makedirs(cache_dir, exist_ok=True)
22
 
23
  model_dir = snapshot_download(
 
16
  logger.info("Loading Whisper model...")
17
 
18
  try:
19
+ cache_dir = "/tmp/hf-cache"
 
20
  os.makedirs(cache_dir, exist_ok=True)
21
 
22
  model_dir = snapshot_download(