Skip to content

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #20

Open
@IbyCodes

Description

@IbyCodes

Just recently got the time to test it out again for myself. I ran 'pip install -U craiyon.py', so it's updated. Unfortunately, this still seems to be a problem. The error of 'json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)' still persists. I'm unable to get something as simple as the following to work:

from craiyon import Craiyon
generator = Craiyon()
result = generator.generate("Photorealistic image of shrek eating earth", negative_prompt="spoon", model_type="art")
print(result.description)
result.save_images()

This, of course, is just one of the examples given in the Craiyon API documentation on how to use it. Any fix would be appreciated!

Originally posted by @IbyCodes in #18 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions