Kexin-251202 commited on
Commit
b2e6ec6
·
verified ·
1 Parent(s): 3756051

update main py debug disappeared user/admin and pop-window

Browse files
Files changed (1) hide show
  1. main.py +1 -2
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
- FRONTEND_DIR = "dist" if os.path.exists("dist/index.html") else "static"
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")