absolutely detest global semantics

This commit is contained in:
mrq 2023-02-19 05:12:09 +00:00
parent f44239a85a
commit 57060190af

View File

@ -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()