From c4f65b8f4e8ed0612a2dda0c930db46272e6b1d9 Mon Sep 17 00:00:00 2001 From: fkunn1326 <92153597+fkunn1326@users.noreply.github.com> Date: Wed, 11 Oct 2023 18:02:01 +0900 Subject: [PATCH] Fix load from json not working Co-authored-by: code-boxx --- scripts/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/main.py b/scripts/main.py index d41a56e..70e43ab 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -132,7 +132,7 @@ def savePreset(name, data): send_t2t.click(None, select_target_index, None, _js="(i) => {sendImage('txt2img', i)}") send_i2i.click(None, select_target_index, None, _js="(i) => {sendImage('img2img', i)}") reset_btn.click(None, [], None, _js="resetCanvas") - json_input.upload(None, json_input, [width, height], _js="loadJSON") + json_input.upload(None, json_input, [width, height], _js="() => {loadJSON('openpose_json_button')}") json_output.click(None, None, None, _js="saveJSON") preset_save.click(savePreset, [dummy_component, dummy_component], [preset_list, preset], _js="savePreset") preset_load.click(None, preset, [width, height], _js="loadPreset")