1
0
Fork 0

absolutely detest global semantics

master
mrq 2023-02-19 05:12:09 +07:00
parent f44239a85a
commit 57060190af
1 changed files with 1 additions and 0 deletions

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