Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ Version de démonstration - Interface complète en développement.
|
|
| 7 |
"""
|
| 8 |
from pathlib import Path
|
| 9 |
|
| 10 |
-
import gradio as gr
|
| 11 |
import mlflow
|
| 12 |
import mlflow.pyfunc
|
| 13 |
from huggingface_hub import hf_hub_download
|
|
@@ -111,13 +111,13 @@ def get_model_info():
|
|
| 111 |
|
| 112 |
|
| 113 |
# Interface Gradio
|
| 114 |
-
with gr.Blocks(
|
| 115 |
-
title="Employee Turnover Prediction - DEV", theme=gr.themes.Soft()
|
| 116 |
) as demo:
|
| 117 |
-
gr.Markdown("# 🎯 Prédiction du Turnover - Employee Attrition")
|
| 118 |
-
gr.Markdown("## Environment DEV - Test de déploiement CI/CD")
|
| 119 |
|
| 120 |
-
gr.Markdown(
|
| 121 |
"""
|
| 122 |
### 📊 Statut du projet
|
| 123 |
|
|
@@ -135,19 +135,19 @@ with gr.Blocks(
|
|
| 135 |
"""
|
| 136 |
)
|
| 137 |
|
| 138 |
-
with gr.Row():
|
| 139 |
-
with gr.Column():
|
| 140 |
-
gr.Markdown("### 🔍 Informations sur le modèle")
|
| 141 |
-
check_btn = gr.Button("📊 Vérifier le statut du modèle", variant="primary")
|
| 142 |
|
| 143 |
-
with gr.Column():
|
| 144 |
-
model_output = gr.JSON(label="Statut")
|
| 145 |
|
| 146 |
check_btn.click(fn=get_model_info, inputs=[], outputs=model_output)
|
| 147 |
|
| 148 |
-
gr.Markdown("---")
|
| 149 |
|
| 150 |
-
gr.Markdown(
|
| 151 |
"""
|
| 152 |
### 🛠️ Prochaines étapes (selon etapes.txt)
|
| 153 |
|
|
|
|
| 7 |
"""
|
| 8 |
from pathlib import Path
|
| 9 |
|
| 10 |
+
import gradio as gr
|
| 11 |
import mlflow
|
| 12 |
import mlflow.pyfunc
|
| 13 |
from huggingface_hub import hf_hub_download
|
|
|
|
| 111 |
|
| 112 |
|
| 113 |
# Interface Gradio
|
| 114 |
+
with gr.Blocks( # type: ignore[attr-defined]
|
| 115 |
+
title="Employee Turnover Prediction - DEV", theme=gr.themes.Soft() # type: ignore[attr-defined]
|
| 116 |
) as demo:
|
| 117 |
+
gr.Markdown("# 🎯 Prédiction du Turnover - Employee Attrition") # type: ignore[attr-defined]
|
| 118 |
+
gr.Markdown("## Environment DEV - Test de déploiement CI/CD") # type: ignore[attr-defined]
|
| 119 |
|
| 120 |
+
gr.Markdown( # type: ignore[attr-defined]
|
| 121 |
"""
|
| 122 |
### 📊 Statut du projet
|
| 123 |
|
|
|
|
| 135 |
"""
|
| 136 |
)
|
| 137 |
|
| 138 |
+
with gr.Row(): # type: ignore[attr-defined]
|
| 139 |
+
with gr.Column(): # type: ignore[attr-defined]
|
| 140 |
+
gr.Markdown("### 🔍 Informations sur le modèle") # type: ignore[attr-defined]
|
| 141 |
+
check_btn = gr.Button("📊 Vérifier le statut du modèle", variant="primary") # type: ignore[attr-defined]
|
| 142 |
|
| 143 |
+
with gr.Column(): # type: ignore[attr-defined]
|
| 144 |
+
model_output = gr.JSON(label="Statut") # type: ignore[attr-defined]
|
| 145 |
|
| 146 |
check_btn.click(fn=get_model_info, inputs=[], outputs=model_output)
|
| 147 |
|
| 148 |
+
gr.Markdown("---") # type: ignore[attr-defined]
|
| 149 |
|
| 150 |
+
gr.Markdown( # type: ignore[attr-defined]
|
| 151 |
"""
|
| 152 |
### 🛠️ Prochaines étapes (selon etapes.txt)
|
| 153 |
|