Commit History
6 days ago
-
fix(app): empêcher la traduction automatique qui affichait « Risque ÉCHEC »
Cause : « ÉCHEC » n'existe ni dans le code ni dans l'historique git ; l'app émet bien « Risque FAIBLE » (vérifié avec Streamlit AppTest). Streamlit sert ses pages avec <html lang="en"> : Chrome croit la page anglaise et la « traduit » en français, ce qui corrompt les libellés déjà en français (« FAIBLE » → « ÉCHEC », « pics » → « photos »). - app.py : script exécuté au chargement qui déclare la page lang="fr", translate="no", classe notranslate et meta google notranslate - Dockerfile : patch de streamlit/static/index.html au build (lang fr, meta notranslate) pour que la page soit correcte dès le premier octet ; le build échoue si le motif n'est plus trouvé - utils_simple.risk_message() : message sous la jauge centralisé - Tests : message des 3 niveaux (bornes 15 et 35 comprises), aucun « ÉCHEC » dans le code affiché, protection anti-traduction présente Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>72821ef -
chore(deploy): unifier le port sur 7860 et nettoyer les fichiers obsolètes
- 7860 est le port attendu par Hugging Face Spaces et déjà utilisé par le Dockerfile et .streamlit/config.toml : CLAUDE.md (8501) aligné, README indique l'URL locale - .env.example : retrait des variables Supabase (intégration supprimée) - Dockerfile : accent cassé corrigé (« nécessaires ») Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>c08ed38
-
fix(critical): align saison/peak_hour encoding + restore TensorFlow on HF
cheikhaidev-ui +1: Claude Sonnet 4.6- utils_simple.create_time_features(): fix saison from binary {0,1} to 3-season Dakar encoding {0,1,2} matching data_generator.get_season() - utils_simple.create_time_features(): fix is_peak_hour to include 7-9h morning peak matching data_generator.is_peak_hour() - requirements-hf.txt: restore tensorflow-cpu==2.17.1 so LSTM loads on HF Spaces (previously removed to avoid build timeout) - Dockerfile: remove outdated comment about missing TensorFlow - CLAUDE.md: document correct saison and is_peak_hour invariants Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>554fba2
-
fix(hf): switch to port 7860 required by HF Spaces Docker
cheikhaidev-ui84eda1b -
fix(docker): remove tensorflow from HF build to fix 30min timeout
cheikhaidev-ui- Add requirements-hf.txt without tensorflow for Docker/HF deployment - Make keras/tensorflow import optional in utils_simple.py - LightGBM-only mode when TF unavailable (graceful degradation) - Local dev keeps tensorflow-cpu==2.17.1 via requirements.txtc27655a -
fix(docker): align Python 3.12-slim with tensorflow-cpu 2.17.1
cheikhaidev-ui- Dockerfile: python:3.11-slim → python:3.12-slim - requirements.txt: tensorflow-cpu 2.16.1 → 2.17.1 - Stack now consistent: local Python 3.12.5 = Docker 3.12-slim = TF 2.17.106ad55e
-
Install libgomp1 to fix LightGBM library error
593c4fa -
Change port from 7860 to 8501 to match Streamlit default
3b21c1b -
Initial commit - code only
5cda98e