Djohell commited on
Commit
b570026
·
verified ·
1 Parent(s): 10c9514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def show_footer():
44
  st.markdown("Projet réalisé dans le cadre de la formation Lead Data Scientist. © 2025")
45
 
46
  #-------------------------------------------------------- Chargement des datasets depuis S3 ---------------------------------------------------
47
- @st.cache_data(show_spinner="🔄 Téléchargement du dataset modèle…", ttl=None)
48
  def load_model_data() -> pd.DataFrame:
49
  bucket = "projet-final-lead"
50
  key = "data/dataset_complet_meteo.csv"
@@ -74,7 +74,7 @@ def load_df_merge() -> pd.DataFrame:
74
  #-------------------------------------------------------- MLflow ---------------------------------------------------
75
  mlflow.set_tracking_uri("https://djohell-ml-flow.hf.space")
76
 
77
- @st.cache_data(show_spinner="🔄 Chargement du modèle MLflow…", ttl=None)
78
  def load_mlflow_model():
79
  model_uri = 'runs:/69a3c889954f4ce9a2139a4fb4cefc59/survival_xgb_model'
80
  model = mlflow.pyfunc.load_model(model_uri)
 
44
  st.markdown("Projet réalisé dans le cadre de la formation Lead Data Scientist. © 2025")
45
 
46
  #-------------------------------------------------------- Chargement des datasets depuis S3 ---------------------------------------------------
47
+ @st.cache_data(show_spinner="🔄 Téléchargement des dernières données météo…", ttl=None)
48
  def load_model_data() -> pd.DataFrame:
49
  bucket = "projet-final-lead"
50
  key = "data/dataset_complet_meteo.csv"
 
74
  #-------------------------------------------------------- MLflow ---------------------------------------------------
75
  mlflow.set_tracking_uri("https://djohell-ml-flow.hf.space")
76
 
77
+ @st.cache_data(show_spinner="🔄 Chargement du modèle prédictif…", ttl=None)
78
  def load_mlflow_model():
79
  model_uri = 'runs:/69a3c889954f4ce9a2139a4fb4cefc59/survival_xgb_model'
80
  model = mlflow.pyfunc.load_model(model_uri)