Skip to content

Commit

Permalink
Update subgen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
McCloudS authored Oct 1, 2024
1 parent c013d59 commit ca6b177
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ def has_image_extension(file_path):
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("/")
def webui():
return {"The webui for configuration was removed on 1 October 2025, please configure via environment variables or in your Docker settings."}

@app.get("/status")
def status():
return {"version" : f"Subgen {subgen_version}, stable-ts {stable_whisper.__version__}, faster-whisper {faster_whisper.__version__} ({docker_status})"}
Expand Down

0 comments on commit ca6b177

Please sign in to comment.