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

Add Features "Load prompt from layer" #23

Merged

Conversation

ElliottLester
Copy link
Contributor

Scope:
We want to restore the state of SDImgPageBase from an already generated layer.
To do this we create a class to store a response and all it's parts that
can be converted to json

Changes:
- Create prompt.py
- Formalize craft response dataclass
- Create class that can be serialized
- looking at tests, but we need to import PyQt5 parts directly not through krita.
- allow for text in front of the json
- from_history_json()
- Add prompt_from_selection
- Remove all base64 from the response path
- All responses are now PromptResponse
- Assert images doesn't exceed names
We should check if the response has images in it before we try to insert them.
Then notify the user the Server sent us an empty response.
Added:
ERR_BACKEND
ERR_EMPTY_RESPONSE
frontends/krita/krita_comfy/prompt.py Outdated Show resolved Hide resolved
@JasonS09 JasonS09 merged commit 78aa100 into JasonS09:ComfyUI-implementation Sep 12, 2023
@JasonS09
Copy link
Owner

Thanks for your contribution, it's very useful!

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

Successfully merging this pull request may close these issues.

2 participants