Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ os.makedirs(cache_dir, exist_ok=True)
|
|
| 43 |
whisper_model = whisper.load_model("tiny", download_root=cache_dir)
|
| 44 |
|
| 45 |
# загрузка параметров модели
|
| 46 |
-
filepath = os.path.abspath("
|
| 47 |
if not os.path.exists(filepath):
|
| 48 |
raise FileNotFoundError(f"Model file not found at {filepath}")
|
| 49 |
|
|
|
|
| 43 |
whisper_model = whisper.load_model("tiny", download_root=cache_dir)
|
| 44 |
|
| 45 |
# загрузка параметров модели
|
| 46 |
+
filepath = os.path.abspath("best_model.h5")
|
| 47 |
if not os.path.exists(filepath):
|
| 48 |
raise FileNotFoundError(f"Model file not found at {filepath}")
|
| 49 |
|