From f597ff29e82b648e67dfbb91c265db8ee447f7c8 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 18 Apr 2026 13:05:20 +0200 Subject: [PATCH] chore: move model storage into project models/ directory Models now live in /models/ instead of ~/.8cut_models/ so everything stays self-contained. Updated .gitignore to exclude models/, .venv/, *.joblib, and *.pt. Co-Authored-By: Claude Opus 4.6 --- .gitignore | 6 ++++-- core/audio_scan.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index aea468b..9e8fb2c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,7 @@ __pycache__/ *.pyo .pytest_cache/ .worktrees/ -client/node_modules/ -client/src-tauri/target/ +.venv/ +models/ +*.joblib +*.pt diff --git a/core/audio_scan.py b/core/audio_scan.py index 2c3ff49..5fd15a8 100644 --- a/core/audio_scan.py +++ b/core/audio_scan.py @@ -9,7 +9,7 @@ from .paths import _log _SR = 16000 # lower sr = faster _WINDOW = 8.0 # seconds -_MODEL_DIR = os.path.join(os.path.expanduser("~"), ".8cut_models") +_MODEL_DIR = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "models") _W2V_CACHE_DIR = os.path.join(os.path.expanduser("~"), ".8cut_cache", "w2v") # ---------------------------------------------------------------------------