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 specifying custom dictionary keys for event input. #10171

Open
1 task done
L9qmzn opened this issue Dec 10, 2024 · 0 comments
Open
1 task done

Allow specifying custom dictionary keys for event input. #10171

L9qmzn opened this issue Dec 10, 2024 · 0 comments
Labels
enhancement New feature or request needs designing The proposed feature needs to be discussed and designed before being implemented

Comments

@L9qmzn
Copy link

L9qmzn commented Dec 10, 2024

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
When using dictionaries as event inputs in Gradio, we can only use component objects themselves as dictionary keys. This makes it difficult to separate event handling functions from component creation code, as the functions need direct access to the component objects.

Describe the solution you'd like
Allow specifying custom string keys when using dictionaries as event inputs.

@abidlabs abidlabs added needs designing The proposed feature needs to be discussed and designed before being implemented enhancement New feature or request labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs designing The proposed feature needs to be discussed and designed before being implemented
Projects
None yet
Development

No branches or pull requests

2 participants