MCPcopy
hub / github.com/lllyasviel/Fooocus / inpaint_engine_state_change

Function inpaint_engine_state_change

webui.py:922–933  ·  view source on GitHub ↗
(inpaint_engine_version, *args)

Source from the content-addressed store, hash-verified

920
921
922 def inpaint_engine_state_change(inpaint_engine_version, *args):
923 if inpaint_engine_version == 'empty':
924 inpaint_engine_version = modules.config.default_inpaint_engine_version
925
926 result = []
927 for inpaint_mode in args:
928 if inpaint_mode != modules.flags.inpaint_option_detail:
929 result.append(gr.update(value=inpaint_engine_version))
930 else:
931 result.append(gr.update())
932
933 return result
934
935 preset_selection.change(preset_selection_change, inputs=[preset_selection, state_is_generating, inpaint_mode], outputs=load_data_outputs, queue=False, show_progress=True) \
936 .then(fn=style_sorter.sort_styles, inputs=style_selections, outputs=style_selections, queue=False, show_progress=False) \

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected