orakzai-io commited on
Commit
474da99
·
1 Parent(s): 6a9176f

new changes

Browse files
Files changed (1) hide show
  1. backend/main.py +4 -10
backend/main.py CHANGED
@@ -33,21 +33,15 @@ app.include_router(chat.router)
33
  app.include_router(auth.router)
34
 
35
 
36
- @app.get("/")
37
- async def root():
38
- return {"status": "running"}
39
-
40
-
41
- @app.get("/health")
42
- async def health():
43
- return {"status": "running"}
44
-
45
-
46
  # Serve frontend static files in single-container mode (e.g. Hugging Face Spaces).
47
  # Must be mounted AFTER all API routes to avoid catching API requests.
48
  static_dir = os.path.join(os.path.dirname(__file__), "static")
49
  if os.path.exists(static_dir):
50
  app.mount("/", StaticFiles(directory=static_dir, html=True), name="static")
 
 
 
 
51
 
52
 
53
  if __name__ == "__main__":
 
33
  app.include_router(auth.router)
34
 
35
 
 
 
 
 
 
 
 
 
 
 
36
  # Serve frontend static files in single-container mode (e.g. Hugging Face Spaces).
37
  # Must be mounted AFTER all API routes to avoid catching API requests.
38
  static_dir = os.path.join(os.path.dirname(__file__), "static")
39
  if os.path.exists(static_dir):
40
  app.mount("/", StaticFiles(directory=static_dir, html=True), name="static")
41
+ else:
42
+ @app.get("/")
43
+ async def root():
44
+ return {"status": "running"}
45
 
46
 
47
  if __name__ == "__main__":