FireHead90544/craiyon.py

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

matteobovio opened this issue · 2 comments

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.

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

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