subhdotsol commited on
Commit
574fde3
·
1 Parent(s): b0ac794

feat(app): add GET /health endpoint for HuggingFace Spaces liveness probe

Browse files
Files changed (1) hide show
  1. server/app.py +4 -0
server/app.py CHANGED
@@ -33,3 +33,7 @@ app.add_middleware(
33
  allow_methods = ["*"],
34
  allow_headers = ["*"],
35
  )
 
 
 
 
 
33
  allow_methods = ["*"],
34
  allow_headers = ["*"],
35
  )
36
+
37
+ @app.get("/health")
38
+ async def health_check():
39
+ return {"status": "healthy", "version": "0.1.0"}