FireHead90544 / craiyon.py

Unofficial API Wrapper for craiyon.com (DAL-E-MINI). Generate awesome images from text tokens.
Apache License 2.0
69 stars 22 forks source link

The method Craiyon.generate() should return GeneratedImages(resp.json().get('images')) #5

Closed matteobovio closed 1 year ago

matteobovio commented 1 year ago

At the moment, the method returns GeneratedImages(resp.json()). However, the response from the server is a json where the array of images (required by the class GeneratedImages) is under images.

FireHead90544 commented 1 year ago

Will fix it in the next update, as soon as my exams finishes.

FireHead90544 commented 1 year ago

Fixed it in the v0.2.0 which is released on PyPI as well. Run pip install -U craiyon to upgrade to the latest version :D