Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
Fix load from json not working
Browse files Browse the repository at this point in the history
Co-authored-by: code-boxx <[email protected]>
  • Loading branch information
fkunn1326 and code-boxx authored Oct 11, 2023
1 parent db07b9c commit c4f65b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c4f65b8

Please sign in to comment.