Decoding Reponse for extra-single-image requests #6320
-
Hello Automatic's community! I'm no coder but I finally figured out how to do im2img from API in Python but I am at the precipice of another great breakthrough in human advancement...or at least it feels like it for none-coders lol Like I said, I figured out how to do img2img but now I can't figure out how to decode the response request of the extra-single-image API into an image variable. in img2img here's how I would decode it.
However, doing the same thing in a extra-single-image response gives out missing "images" key. I assume it's because img2img deals in lists but extra-single-image works in a single image variable. (I wouldn't know though lol)
So the question remains for those who are blessed. How would I go about converting the returned response I get from P.S. The API docs don't contain practical examples of how the codes would be used so that doesn't help.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You are correct, it's because it doesn't return a list, it returns a single dict.
FYI, you can browse all the API request/response details on your local install at 127.0.0.1:7860/docs |
Beta Was this translation helpful? Give feedback.
You are correct, it's because it doesn't return a list, it returns a single dict.
FYI, you can browse all the API request/response details on your local install at 127.0.0.1:7860/docs