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 tuples in addition to functions #22

Open
KacperFKorban opened this issue Mar 11, 2024 · 0 comments
Open

Support tuples in addition to functions #22

KacperFKorban opened this issue Mar 11, 2024 · 0 comments
Labels

Comments

@KacperFKorban
Copy link
Owner

The ides is to be able to write code like the following:

def comment(comment: String) = ???

def getImageURL: URL = ???

guinep.web(getImageURL -> comment)

This would generate a form that also includes the non-function parameters in the form as (static) data. So in this case the form would contain an image followed by a text input box and a submit button.

This encoding would also allow for the creation of alternative actions/forms.
e.g.

def good() = ???
def bad() = ???

def getImageURL: URL = ???

guinep.web(getImageURL -> (good, bad))

This example should then generate a form with an image followed by two action buttons - good and bad. This might be useful for automation for data labeling for example - labelling the image as good or bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant