Commit ·
5c50289
1
Parent(s): eeb406e
change url dashboard
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ app = FastAPI(
|
|
| 59 |
title="🚗 Getaround Pricing API",
|
| 60 |
description=(
|
| 61 |
"Prédiction du prix journalier de location.\n\n"
|
| 62 |
-
"• Dashboard : https://flodussart-
|
| 63 |
"• Endpoint ML : `POST /predict`\n\n"
|
| 64 |
' - Format recommandé : {"input": [[...], ...]} (ordre strict des features)\n\n '
|
| 65 |
' - Format enrichi (optionnel) : {"rows": [...] }.\n'
|
|
@@ -71,7 +71,7 @@ app = FastAPI(
|
|
| 71 |
|
| 72 |
# Authorized origins — Streamlit app and local dev
|
| 73 |
origins = [
|
| 74 |
-
"https://flodussart-
|
| 75 |
"http://localhost:8501", # local Streamlit testing
|
| 76 |
]
|
| 77 |
|
|
@@ -247,7 +247,7 @@ def root() -> dict[str, Any]:
|
|
| 247 |
"status": "running",
|
| 248 |
"message": "Bienvenue sur l’API Getaround 🚗 — utilisez POST /predict",
|
| 249 |
"docs": "/docs",
|
| 250 |
-
"dashboard": "https://flodussart-
|
| 251 |
"model_path": LOCAL_MODEL_PATH,
|
| 252 |
"features": FEATURES,
|
| 253 |
}
|
|
|
|
| 59 |
title="🚗 Getaround Pricing API",
|
| 60 |
description=(
|
| 61 |
"Prédiction du prix journalier de location.\n\n"
|
| 62 |
+
"• Dashboard : https://flodussart-getaround-delay-pricing-dashboard.hf.space\n\n"
|
| 63 |
"• Endpoint ML : `POST /predict`\n\n"
|
| 64 |
' - Format recommandé : {"input": [[...], ...]} (ordre strict des features)\n\n '
|
| 65 |
' - Format enrichi (optionnel) : {"rows": [...] }.\n'
|
|
|
|
| 71 |
|
| 72 |
# Authorized origins — Streamlit app and local dev
|
| 73 |
origins = [
|
| 74 |
+
"https://flodussart-getaround-delay-pricing-dashboard.hf.space", # Streamlit dashboard on Hugging Face
|
| 75 |
"http://localhost:8501", # local Streamlit testing
|
| 76 |
]
|
| 77 |
|
|
|
|
| 247 |
"status": "running",
|
| 248 |
"message": "Bienvenue sur l’API Getaround 🚗 — utilisez POST /predict",
|
| 249 |
"docs": "/docs",
|
| 250 |
+
"dashboard": "https://flodussart-getaround-delay-pricing-dashboard.hf.space",
|
| 251 |
"model_path": LOCAL_MODEL_PATH,
|
| 252 |
"features": FEATURES,
|
| 253 |
}
|