Update subgen.py
This commit is contained in:
@@ -203,6 +203,10 @@ def has_image_extension(file_path):
|
|||||||
def handle_get_request(request: Request):
|
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"}
|
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")
|
@app.get("/status")
|
||||||
def status():
|
def status():
|
||||||
return {"version" : f"Subgen {subgen_version}, stable-ts {stable_whisper.__version__}, faster-whisper {faster_whisper.__version__} ({docker_status})"}
|
return {"version" : f"Subgen {subgen_version}, stable-ts {stable_whisper.__version__}, faster-whisper {faster_whisper.__version__} ({docker_status})"}
|
||||||
|
|||||||
Reference in New Issue
Block a user