Spaces:
Sleeping
Sleeping
| # SanketSetu Backend β environment variables | |
| # Copy this file to .env and edit as needed. | |
| # All values below are the defaults; remove a line to keep the default. | |
| # ββ Model paths (default: resolved from repo root) βββββββββββββββββββββββββ | |
| # WEIGHTS_DIR=/absolute/path/to/model/dir | |
| # ββ Inference βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Pipeline A confidence below this β also run Pipeline B | |
| CONFIDENCE_THRESHOLD=0.70 | |
| # Pipeline A+B ensemble confidence below this β also run Pipeline C (if image) | |
| SECONDARY_THRESHOLD=0.60 | |
| # Which pipeline to run: A | B | C | ensemble | |
| PIPELINE_MODE=ensemble | |
| # ββ Server ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| MAX_WS_CONNECTIONS=100 | |
| # Comma-separated list of allowed CORS origins | |
| CORS_ORIGINS=http://localhost:5173,http://localhost:3000 | |
| # ββ TensorFlow / Keras ββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| KERAS_BACKEND=tensorflow | |
| TF_CPP_MIN_LOG_LEVEL=3 | |
| CUDA_VISIBLE_DEVICES= # empty = CPU-only, skip GPU scan (faster startup) | |
| TF_ENABLE_ONEDNN_OPTS=0 | |
| OMP_NUM_THREADS=4 | |
| # ββ Logging βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| LOG_LEVEL=INFO | |