From b85975e99efdaf4c33be95bb8bc909d0373a10a5 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Wed, 3 Apr 2024 19:53:06 -0600 Subject: [PATCH] Fixed /status --- subgen.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subgen.py b/subgen.py index 2ccd838..3475989 100644 --- a/subgen.py +++ b/subgen.py @@ -202,6 +202,10 @@ def appendLine(result): def handle_get_request(request: Request): return {"You accessed this request incorrectly via a GET request. See https://github.com/McCloudS/subgen for proper configuration"} +@app.get("/status") +def status(): + return {"version" : f"Subgen {subgen_version}, stable-ts {stable_whisper.__version__}, whisper {whisper.__version__} ({docker_status})"} + # Function to generate HTML form with values filled from the environment file @app.get("/", response_class=HTMLResponse) def form_get():