Skip to content

Commit

Permalink
Add health check endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Nov 12, 2024
1 parent 8a38a86 commit 2cc0484
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web-apps/flux-image-gen/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ class ImageGenInput(BaseModel):
prompt: str
add_sampling_metadata: bool

@app.get("/")
def health_check():
return "Server is running"

@app.get("/model")
async def get_model():
Expand Down

0 comments on commit 2cc0484

Please sign in to comment.