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

Commit

Permalink
Merge pull request #137 from fkunn1326/fix-load-from-json
Browse files Browse the repository at this point in the history
Fix load from json not working ( fix #121 fix #136 )
  • Loading branch information
fkunn1326 committed Oct 11, 2023
2 parents db07b9c + c4f65b8 commit c935771
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 c935771

Please sign in to comment.