Spaces:
Sleeping
Sleeping
update main py debug disappeared user/admin and pop-window
Browse files
main.py
CHANGED
|
@@ -578,8 +578,7 @@ async def health_check():
|
|
| 578 |
return {"status": "healthy", "model_loaded": mlp_pipeline is not None, "database": os.path.exists(db_path)}
|
| 579 |
|
| 580 |
# ================ STATIC FILES (SPA SUPPORT) ================
|
| 581 |
-
|
| 582 |
-
assets_path = os.path.join(FRONTEND_DIR, "assets")
|
| 583 |
# 1. Mount the assets folder (JS/CSS built by Vite/React)
|
| 584 |
if os.path.exists("static/assets"):
|
| 585 |
app.mount("/assets", StaticFiles(directory="static/assets"), name="assets")
|
|
|
|
| 578 |
return {"status": "healthy", "model_loaded": mlp_pipeline is not None, "database": os.path.exists(db_path)}
|
| 579 |
|
| 580 |
# ================ STATIC FILES (SPA SUPPORT) ================
|
| 581 |
+
|
|
|
|
| 582 |
# 1. Mount the assets folder (JS/CSS built by Vite/React)
|
| 583 |
if os.path.exists("static/assets"):
|
| 584 |
app.mount("/assets", StaticFiles(directory="static/assets"), name="assets")
|