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

Add .then to gr.Examples #8710

Closed
1 task done
apolinario opened this issue Jul 6, 2024 · 1 comment · Fixed by #8733
Closed
1 task done

Add .then to gr.Examples #8710

apolinario opened this issue Jul 6, 2024 · 1 comment · Fixed by #8733
Labels
enhancement New feature or request

Comments

@apolinario
Copy link
Contributor

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

Is your feature request related to a problem? Please describe.
Sometimes the app requires some pre-processing tasks that happen during the interactive session with the user (e.g.: cropping an image when it's uploaded), however, when using gr.Examples with cache_examples, this should be expedited into running all the tasks that happen in the interactive session.

Describe the solution you'd like
I'd like to be able to do a .then or .success after gr.Examples, so that once the first fn runs, others run in sequence.

@abidlabs
Copy link
Member

abidlabs commented Jul 7, 2024

Thanks @apolinario agreed. I think we can just expose the caching event so that a developer could do .then, .success, cancellation, or anything else that they'd like with the event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants