| """ |
| Central configuration. |
| |
| SECURITY / PORTABILITY NOTE |
| ---------------------------- |
| Your original notebook hardcoded an absolute path like: |
| |
| /content/drive/MyDrive/Dataset-20260613T045948Z-3-001.zip |
| |
| Two problems with that: |
| 1. It only works inside Google Colab with Drive mounted — breaks for |
| anyone else who clones the repo (or for you, on another machine). |
| 2. It leaks personal info into a public GitHub repo: your Drive folder |
| naming, the exact upload timestamp encoded in the filename, and |
| implicitly that you use Google Drive for this project. |
| |
| Fix: never hardcode personal paths in code. Read them from environment |
| variables (with sane local defaults) or CLI arguments instead. That way |
| the repo only ever contains code, never your machine-specific paths. |
| """ |
|
|
| import os |
|
|
| |
| |
| DATASET_PATH = os.environ.get("DATASET_PATH", "data/dataset.zip") |
|
|
| |
| |
| MODEL_PATH = os.environ.get("MODEL_PATH", "models/stutter_model.pkl") |
|
|
| |
| DURATION_SECONDS = 5 |
| N_MFCC = 40 |
|
|