Merge pull request #4812 from space-nuko/feature/interrupt-preprocessing

Add interrupt button to preprocessing
This commit is contained in:
AUTOMATIC1111
2022-11-19 13:26:33 +03:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ def create_embedding(name, initialization_text, nvpt, overwrite_old):
def preprocess(*args):
modules.textual_inversion.preprocess.preprocess(*args)
return "Preprocessing finished.", ""
return f"Preprocessing {'interrupted' if shared.state.interrupted else 'finished'}.", ""
def train_embedding(*args):