From 7a2dc3359f1faae098f11464fd5805b6c21f3ffe Mon Sep 17 00:00:00 2001 From: Ruixi Fan Date: Tue, 16 Apr 2024 16:34:35 -0700 Subject: [PATCH] add health endpoint --- server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 5c2ec9815..d1e5b3ebe 100644 --- a/server.py +++ b/server.py @@ -267,8 +267,9 @@ class PromptServer(): text=f"Invalid weight_type: {weight_type}." ) - - + @routes.get("/health") + async def health(request): + return web.Response(status=200, text="Healthy") @routes.post("/upload/image") async def upload_image(request):