chore: move model storage into project models/ directory

Models now live in <project>/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 <noreply@anthropic.com>
This commit is contained in:
2026-04-18 13:05:20 +02:00
parent e1789d4e71
commit f597ff29e8
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -3,5 +3,7 @@ __pycache__/
*.pyo *.pyo
.pytest_cache/ .pytest_cache/
.worktrees/ .worktrees/
client/node_modules/ .venv/
client/src-tauri/target/ models/
*.joblib
*.pt
+1 -1
View File
@@ -9,7 +9,7 @@ from .paths import _log
_SR = 16000 # lower sr = faster _SR = 16000 # lower sr = faster
_WINDOW = 8.0 # seconds _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") _W2V_CACHE_DIR = os.path.join(os.path.expanduser("~"), ".8cut_cache", "w2v")
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------