You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you intended to be able to pass an input image without a prompt for the generate api?
if (promptisNone) and (init_imageisNone):
raiseValueError("prompt and/or init_image must be provided")
This error message implies that you should be able to. But later, it tries to iterate over the prompt object.
forpinprompt:
ifisinstance(p, str):
p=generation.Prompt(text=p)
elifnotisinstance(p, generation.Prompt):
raiseTypeError("prompt must be a string or generation.Prompt object")
prompts.append(p)
So when I don't pass a prompt in I get an error.
File "/opt/homebrew/Caskroom/miniconda/base/envs/tile-texture/lib/python3.11/site-packages/stability_sdk/client.py", line 226, in generate
for p in prompt:
TypeError: 'NoneType' object is not iterable
The text was updated successfully, but these errors were encountered:
Are you intended to be able to pass an input image without a prompt for the generate api?
This error message implies that you should be able to. But later, it tries to iterate over the prompt object.
So when I don't pass a prompt in I get an error.
The text was updated successfully, but these errors were encountered: