Spaces:
Sleeping
Sleeping
CD: update from GitHub main
Browse files- App/main.py +4 -0
App/main.py
CHANGED
|
@@ -6,6 +6,10 @@ import json
|
|
| 6 |
from App.models import ClientFeatures
|
| 7 |
|
| 8 |
app = FastAPI()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Charger le pipeline MLflow (attend les colonnes ORIGINALES)
|
| 11 |
pipe = joblib.load("./BestModel/pipeline_complet.joblib")
|
|
|
|
| 6 |
from App.models import ClientFeatures
|
| 7 |
|
| 8 |
app = FastAPI()
|
| 9 |
+
@app.get("/")
|
| 10 |
+
def root():
|
| 11 |
+
return {"status": "ok"}
|
| 12 |
+
|
| 13 |
|
| 14 |
# Charger le pipeline MLflow (attend les colonnes ORIGINALES)
|
| 15 |
pipe = joblib.load("./BestModel/pipeline_complet.joblib")
|