Prevent reloading the script unless it's only the .py script being modified

This commit is contained in:
McCloudS authored and GitHub committed 2024-03-19 12:15:57 -06:00
1 parent f4842ba2ec
commit 0201e8b029
1 file changed
+1 -1
+1 -1
View File
@@ -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')