Closed aliabid94 closed 4 months ago
• | Name | Status | URL |
---|---|---|---|
Spaces | ready! | Spaces preview | |
Website | ready! | Website preview | |
Storybook | ready! | Storybook preview | |
:unicorn: | Changes | detected! | Details |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/18c73936724aeca7ce033d0ba386971b624b75ae/gradio-4.31.5-py3-none-any.whl
Install Gradio Python Client from this PR
pip install "gradio-client @ git+https://github.com/gradio-app/gradio@18c73936724aeca7ce033d0ba386971b624b75ae#subdirectory=client/python"
Install Gradio JS Client from this PR
npm install https://gradio-builds.s3.amazonaws.com/18c73936724aeca7ce033d0ba386971b624b75ae/gradio-client-0.19.4.tgz
Package | Version |
---|---|
@gradio/app |
patch |
@gradio/client |
patch |
@gradio/column |
patch |
@gradio/row |
patch |
@gradio/statustracker |
patch |
gradio |
patch |
Improve rendering
Maintainers or the PR author can modify the PR title to modify this entry.
Rendering animation looks great. Two comments beyond what I left on slack:
Regarding rapid updates, a common approach is to add a threshold of a few hundred MS before starting any animations, that could work here (but is also something we could do in a follow up)
I think it should be possible to disable the progress animation for render. It can be distracting for quick renders. Especially if render is triggered based on small changes to a state variable.
Okay I made this change for now: Previously, the animation would be alternating from 100% opacity to 50% and back to 100%, over 2s infinitely. Now it starts at 0%, goes to 100% over 1s, and then 100% opacity to 50% and back to 100%, over 2s infinitely. Because it now starts at 0%, quick renders don't show any visual change.
I think it should be possible to not queue render events. If it's a quick UI update, I don't see the benefit of queueing.
Done.
Several improvements to gr.render, including:
Animation to show rendering
Memory cleanup in frontend, removing elements from previous render
Allow rendering in a row
Respond to last trigger, via trigger_mode="always_last"