Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
| 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 |
|