MCPcopy
hub / github.com/vladmandic/sdnext / fail

Function fail

modules/extras.py:45–48  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

43 t0 = time.time()
44
45 def fail(message):
46 shared.state.textinfo = message
47 shared.state.end(jobid)
48 return [*[gr.update() for _ in range(4)], message]
49
50 kwargs["models"] = {
51 "model_a": sd_models.get_closest_checkpoint_match(kwargs.get("primary_model_name", None)).filename,

Callers 1

run_modelmergerFunction · 0.85

Calls 2

endMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected