yufii commited on
Commit
217f9d2
·
verified ·
1 Parent(s): 6fa5220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ filepath = os.path.abspath("cnn_1_v6_final_model.h5")
39
  if not os.path.exists(filepath):
40
  raise FileNotFoundError(f"Model file not found at {filepath}")
41
 
42
- cache_dir = os.path.join(os.getcwd(), "whisper_cache")
43
  os.makedirs(cache_dir, exist_ok=True)
44
  whisper_model = whisper.load_model("tiny", download_root=cache_dir)
45
 
 
39
  if not os.path.exists(filepath):
40
  raise FileNotFoundError(f"Model file not found at {filepath}")
41
 
42
+ cache_dir = "/tmp/whisper_cache"
43
  os.makedirs(cache_dir, exist_ok=True)
44
  whisper_model = whisper.load_model("tiny", download_root=cache_dir)
45