From 57060190af0c887ef8fab438ba48fbe233d282a6 Mon Sep 17 00:00:00 2001
From: mrq <barry.quiggles@protonmail.com>
Date: Sun, 19 Feb 2023 05:12:09 +0000
Subject: [PATCH] absolutely detest global semantics

---
 src/utils.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/utils.py b/src/utils.py
index d4b9c89..7c1bb95 100755
--- a/src/utils.py
+++ b/src/utils.py
@@ -509,6 +509,7 @@ def run_training(config_path, verbose=False, buffer_size=8, progress=gr.Progress
 
 
 def stop_training():
+	global training_process
 	if training_process is None:
 		return "No training in progress"
 	training_process.kill()