Skip to content

Conversation

@mattt
Copy link
Contributor

@mattt mattt commented May 5, 2023

Fixes #1028

$ cog predict r8.im/daanelson/stable-diffusion-speed-lab@sha256:db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf -i prompt=guitar
ⅹ Failed to parse config from r8.im/daanelson/stable-diffusion-speed-lab@sha256:db21e45d3f7023abc2a46ee38a23973f6dce16bb082a930b0c49861f96d1e5bf: json: cannot unmarshal string into Go struct field Build.build.run of type config.RunItem

This PR adds the missing UnmarshallJSON method causing this error.

mattt added 2 commits May 5, 2023 10:58
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
Signed-off-by: Mattt Zmuda <mattt@replicate.com>
@mattt mattt requested a review from andreasjansson May 5, 2023 18:00
@mattt mattt enabled auto-merge (squash) May 5, 2023 18:01
@mattt mattt merged commit 642f550 into main May 5, 2023
@mattt mattt deleted the mattt/fix-cog-predict-runitem branch May 5, 2023 18:06
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.

cog predict error when unmarshaling run item from cog.yaml

2 participants