feat: dark mode expanders, sidebar services, MLflow auth, example scripts#211
Merged
Merged
Conversation
…ipts - Fix dark mode: expanders now have correct dark background (targets `details` HTML element directly to bypass Streamlit's generated class names) - Sidebar: add Services section (Swagger, Grafana, MinIO, MLflow) — hidden for readonly users; role stored in session and persisted in /tmp session files - MLflow basic auth: new docker/mlflow-entrypoint.sh generates auth.ini from env vars and starts MLflow with --app-name basic-auth (NO_PERMISSIONS default); MLFLOW_ADMIN_PASSWORD added to .env.example and scripts/init_env.sh - Models page: add "Scripts d'exemple — Iris" expander (above uploader) with view popup (@st.dialog) and download for train_iris.py and upload_iris_model.py - Predictions page: add "Scripts d'exemple — Iris" expander with view/download for send_predictions_iris.py and send_ground_truth.py - documentation/Scripts/: add train_iris.py, upload_iris_model.py, send_predictions_iris.py, send_ground_truth.py Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
detailsdirectement (contourne les classes généréesst-emotion-cache-xxxde Streamlit)readonly; le rôle est désormais récupéré via/users/meau login et persisté dans la session/tmpdocker/mlflow-entrypoint.shqui génèreauth.inidepuis les variables d'env (MLFLOW_ADMIN_USER/MLFLOW_ADMIN_PASSWORD) et démarre MLflow avec--app-name basic-auth(default_permission = NO_PERMISSIONS) ;MLFLOW_ADMIN_PASSWORDajouté dans.env.exampleet généré parscripts/init_env.sh@st.dialog) et "⬇️ Télécharger" pourtrain_iris.pyetupload_iris_model.pysend_predictions_iris.pyetsend_ground_truth.pydocumentation/Scripts/: 4 nouveaux scripts de référence IrisNouveaux fichiers
docker/mlflow-entrypoint.shdocumentation/Scripts/train_iris.pytrain.pycompatible sandbox PredictMLdocumentation/Scripts/upload_iris_model.pytrain_iris.pypuis uploade via APIdocumentation/Scripts/send_predictions_iris.pydocumentation/Scripts/send_ground_truth.pyTest plan
docker compose up -d mlflow— vérifier que http://127.0.0.1:5000 demande un loginscripts/init_env.shsur un.envvierge — vérifier queMLFLOW_ADMIN_PASSWORDapparaît dans le résumé🤖 Generated with Claude Code