TasteEngine / .env.example
Abdallah4z's picture
Production readiness: port 7860, Dockerfile, HF Spaces config
f9ade9b
Raw History Blame Contribute Delete
628 Bytes
# TasteEngine — Environment Configuration
# Copy to .env and adjust values
# Flask secret key (generate with: python3 -c "import os; print(os.urandom(24).hex())")
FLASK_SECRET_KEY=changeme_to_a_random_hex_string
# Set to "1" to enable Flask debug mode (dev only!)
FLASK_DEBUG=0
# Port for the Flask dev server (ignored when using Gunicorn)
PORT=5000
# Set to "1" to pre-warm SVD and Slope One caches on startup.
# First user won't pay the 10s training penalty, but startup takes ~15s longer.
PREWARM_CACHE=0
# OpenBLAS thread control (leave at 1 for Gunicorn multi-worker setups)
OPENBLAS_NUM_THREADS=1
OMP_NUM_THREADS=1