Skip to content

Supports gr.update() in example caching#2309

Merged
abidlabs merged 8 commits into
mainfrom
ex-cache-fix
Sep 21, 2022
Merged

Supports gr.update() in example caching#2309
abidlabs merged 8 commits into
mainfrom
ex-cache-fix

Conversation

@abidlabs
Copy link
Copy Markdown
Member

@abidlabs abidlabs commented Sep 20, 2022

Previously, we couldn't handle gr.update() in flagging or example caching, as described in #2305. This PR fixes that.

Fixes: #2305

I'm still writing some tests but ready to be reviewed

Comment thread gradio/components.py Outdated
@github-actions
Copy link
Copy Markdown
Contributor

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2309-all-demos

@abidlabs abidlabs marked this pull request as ready for review September 20, 2022 22:19
@abidlabs abidlabs marked this pull request as draft September 21, 2022 00:36
@abidlabs abidlabs marked this pull request as ready for review September 21, 2022 04:07
Comment thread gradio/examples.py Outdated
Comment thread gradio/flagging.py
Copy link
Copy Markdown
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me @abidlabs ! Thanks for the fix.

Comment thread test/test_examples.py
Comment thread gradio/blocks.py Outdated
Comment thread gradio/examples.py
@abidlabs
Copy link
Copy Markdown
Member Author

Thank you so much @freddyaboulton for the comprehensive review. I've patched all of the holes now and this should be all set to merge after the tests pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example caching doesn't work with gr.update()

2 participants