Closed ChinatsuHS closed 1 year ago
I am getting the error, though do not trust ChatGPT to fix complex code depending on multiple files. ChatGPT has no idea of the scope nor the current state of the codebase, so it will not be able to give a valid answer unless you can elaborate specifically what's wrong.
Edit: The issue is that the value
specified in this line isn't actual JSON but a string "test
". The WebUI bumped the gradio version, and it's built-in JSON function no longer silently discards string values, so an exception is thrown. Changing test
to an empty object ({}
) fixes the issue, as it can be interpreted as an empty JSON object.
https://github.com/kohya-ss/sd-webui-additional-networks/blob/cd156db79b7527a4f4f737d28d5771bb0126787f/scripts/additional_networks.py#L283-L284
I am getting the error, though do not trust ChatGPT to fix complex code depending on multiple files. ChatGPT has no idea of the scope nor the current state of the codebase, so it will not be able to give a valid answer unless you can elaborate specifically what's wrong.
Edit: The issue is that the
value
specified in this line isn't actual JSON but a string "test
". The WebUI bumped the gradio version, and it's built-in JSON function no longer silently discards string values, so an exception is thrown. Changingtest
to an empty object ({}
) fixes the issue, as it can be interpreted as an empty JSON object.
Now it works! thanks!
Thank you for this! I've updated the script to fix the error. This seems to be caused by Gradio updating in the latest web UI.
Was getting the error after automatic1111's update so i used chatgpt to fix it ...
not sure how Github works with fixes to errors so i gonna put it here: