Where to find the json payload for the request #2108
Unanswered
gingivere0
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Any progress on this? I would like to conveniently run the webui locally. And activate generation on a dedicated server on request. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When requesting an image using the web frontend (http://127.0.0.1:7860/), the website builds a json payload that it sends to http://127.0.0.1:7860/api/predict, and the response contains the image or images that are generated.
I'm looking for where in the website code this json payload is constructed.
I've built (/am building) a discord bot that takes prompts from discord messages, bundles them into json, sends that json to my locally running SD, and returns the image to discord. Sometimes when there is an SD update, the json payload indices are changed. If I could find how this json payload is constructed in the SD website code, I think I could construct my json payload dynamically instead of having to manually update the indices to match whatever the new format may be.
Thanks!
Here's a link to the bot if anyone wants to try it out: https://github.com/gingivere0/dalebot
Beta Was this translation helpful? Give feedback.
All reactions