forked from camenduru/ai-voice-cloning
absolutely detest global semantics
This commit is contained in:
parent
f44239a85a
commit
57060190af
|
@ -509,6 +509,7 @@ def run_training(config_path, verbose=False, buffer_size=8, progress=gr.Progress
|
||||||
|
|
||||||
|
|
||||||
def stop_training():
|
def stop_training():
|
||||||
|
global training_process
|
||||||
if training_process is None:
|
if training_process is None:
|
||||||
return "No training in progress"
|
return "No training in progress"
|
||||||
training_process.kill()
|
training_process.kill()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user