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

[async] Fix cog predict running file outputs #2043

Draft
wants to merge 1 commit into
base: async
Choose a base branch
from

Commits on Nov 4, 2024

  1. Fix cog predict running file outputs

    This commit backports some of the changes to pkg/cli/predict.go from
    main as of 3e0dc79 to fix a nil pointer exception that occurs when
    trying to run `cog predict` on a model that outputs a `File` type.
    
    The panic occurs in predictIndividualInputs() trying to decode the
    data URL returned by the model. Giving the error:
    
        panic: runtime error: invalid memory address or nil pointer dereference
    aron committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    1e2465b View commit details
    Browse the repository at this point in the history