From 0201e8b029e284f9f8f157388831a229539124c8 Mon Sep 17 00:00:00 2001 From: McCloudS <64094529+McCloudS@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:15:57 -0600 Subject: [PATCH] Prevent reloading the script unless it's only the .py script being modified --- subgen/subgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subgen/subgen.py b/subgen/subgen.py index dd248c7..3644e60 100644 --- a/subgen/subgen.py +++ b/subgen/subgen.py @@ -764,4 +764,4 @@ if __name__ == "__main__": logging.info(f"Using faster-whisper") if transcribe_folders: transcribe_existing(transcribe_folders) - uvicorn.run("subgen:app", host="0.0.0.0", port=int(webhookport), reload=debug, use_colors=True) + uvicorn.run("subgen:app", host="0.0.0.0", port=int(webhookport), reload=debug, use_colors=True, reload_include='*.py')