1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-03 07:26:31 +08:00

Add a button to interrupt processing to the ui.

This commit is contained in:
comfyanonymous
2023-03-02 15:24:51 -05:00
parent 69cc75fbf8
commit c8ce599a8f
3 changed files with 10 additions and 2 deletions

View File

@@ -45,8 +45,8 @@ def filter_files_extensions(files, extensions):
def before_node_execution():
model_management.throw_exception_if_processing_interrupted()
def interrupt_processing():
model_management.interrupt_current_processing()
def interrupt_processing(value=True):
model_management.interrupt_current_processing(value)
class CLIPTextEncode:
@classmethod