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

Support Any as input #608

Open
bfirsh opened this issue May 12, 2022 · 3 comments
Open

Support Any as input #608

bfirsh opened this issue May 12, 2022 · 3 comments
Labels
next papercut Small issues that build up

Comments

@bfirsh
Copy link
Member

bfirsh commented May 12, 2022

I want it to be possible to start with the simplest, most flexible thing, then layer in things on top.

You should be able to start with this:

def predict(name):
    return f"hello {name}"

Then, you can augment it. If you want to get some fancy output, add an output type. If you want a better form field and some validation, add an input type. If you need some setup processing, add a Predictor and a setup() function.

See also

@bfirsh bfirsh added the help wanted Extra attention is needed label May 13, 2022
@zeke zeke removed the help wanted Extra attention is needed label May 16, 2022
@bfirsh
Copy link
Member Author

bfirsh commented Apr 25, 2023

Implementation: #968

@bfirsh
Copy link
Member Author

bfirsh commented Sep 22, 2023

There are some failing tests in here representing the behavior: #1313

@bfirsh
Copy link
Member Author

bfirsh commented Jun 25, 2024

From #538:

My dream is arbitrary JSON encodable types in/out as the lowest level thing, then more specific types built on top of that. We've got that for outputs, but not inputs yet. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next papercut Small issues that build up
Projects
None yet
Development

No branches or pull requests

3 participants