Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stable API not working anymore #12

Closed
jezs00 opened this issue Dec 26, 2022 · 1 comment
Closed

Stable API not working anymore #12

jezs00 opened this issue Dec 26, 2022 · 1 comment

Comments

@jezs00
Copy link
Owner

jezs00 commented Dec 26, 2022

Getting the following issue from code that previously worked:

Traceback (most recent call last):
File "E:\Documents\GitHub\pycasso\run.py", line 26, in
instance.run()
File "E:\Documents\GitHub\pycasso\pycasso.py", line 344, in run
image_base = self.load_stability_image(prompt, fetch_width, fetch_height,
File "E:\Documents\GitHub\pycasso\pycasso.py", line 188, in load_stability_image
image = stability_provider.get_image_from_string(prompt, fetch_height, fetch_width)
File "E:\Documents\GitHub\pycasso\provider.py", line 92, in get_image_from_string
for resp in answers:
File "E:\Documents\GitHub\pycasso\venv\lib\site-packages\stability_sdk\client.py", line 363, in generate
artifact_ts = [
File "E:\Documents\GitHub\pycasso\venv\lib\site-packages\stability_sdk\client.py", line 364, in
generation.ArtifactType.Name(artifact.type)
File "E:\Documents\GitHub\pycasso\venv\lib\site-packages\google\protobuf\internal\enum_type_wrapper.py", line 64, in Name
raise ValueError('Enum {} has no name defined for value {!r}'.format(
ValueError: Enum ArtifactType has no name defined for value 8

@jezs00
Copy link
Owner Author

jezs00 commented Dec 26, 2022

Appears to be using credits, so it should be returning an image. Code still matches code example.

@jezs00 jezs00 closed this as completed in 9837c7d Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant