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

Allow serialize to gather implicit nodes #24

Merged
merged 6 commits into from
Jun 18, 2024
Merged

Conversation

liamgriffiths
Copy link
Contributor

@liamgriffiths liamgriffiths commented Jun 17, 2024

https://github.com/orgs/SubstrateLabs/projects/1/views/3?pane=issue&itemId=66030127

Allows us to only need to pass in the terminal nodes into substrate.run (and other methods that use serialize)

scene = GenerateText(prompt="description of a mythical forest creature: ")

styles = ["woodblock printed", "art nouveau poster"]
images = [GenerateImage(store="hosted", prompt=sb.concat(style, ": ", scene.future.text)) for style in styles]

result = substrate.run(*images)

@liamgriffiths liamgriffiths merged commit c38a66f into main Jun 18, 2024
3 checks passed
@liamgriffiths liamgriffiths deleted the liam/implicit-nodes branch June 18, 2024 14:59
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.

1 participant