Dezgo

भुगतान किया गया
द्वारा dezgo | अपडेट किया गया 21 दिन पहले | Artificial Intelligence/Machine Learning
लोकप्रियता

9.6 / 10

लेटेंसी

7,403ms

सेवा का स्तर

99%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

Python: How to send an image2image request

Rapid account: Thedevelopermoses
thedevelopermoses
לפני 10 חודשים

I’ve been trying to send a request using the image2image API endpoint, the text2image works just fine but I can’t seem to get the image2image to work. i always get a response 500. it seems my main problem is how to send the image to the server. The standard python format is to send the image as a base64 string but this causes a response 500. sending the image as a binary file also causes a response 500. Using the example Python (requests) code sample also causes a response 500.

i would appreciate a simple working python example code snippet of sending a request (with an image) to the image2image API endpoint.

Rapid account: Dezgo
dezgo Commented לפני 9 חודשים

Hi,
I think this could be a serialization issue.

Here’s a working Python example to get you started: https://gist.github.com/willezgo/2c30e77cd45ac86179d7011999843a0d

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें