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

This commit is contained in:
McCloudS
2024-03-19 12:15:57 -06:00
committed by GitHub
parent f4842ba2ec
commit 0201e8b029

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')