Closed pngwn closed 1 month ago
• | Name | Status | URL |
---|---|---|---|
Spaces | Spaces preview | ||
Website | Website preview | ||
:unicorn: | Changes |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/33460817b5de035f79f4d205b7ab4dd6f1bb2cff/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@33460817b5de035f79f4d205b7ab4dd6f1bb2cff#subdirectory=client/python"
Package | Version |
---|---|
gradio |
minor |
Add file deletion event to gr.File component
Maintainers or the PR author can modify the PR title to modify this entry.
So long.
Related to #8354
Implements a new event for file deletion in
gr.File
components and updates event handling to support this feature.gr.File
components ingradio/events.py
. This allows for a dedicated event to trigger when an individual file is removed, addressing the feature request.gradio/interface.py
to trigger the new file deletion event when a file is removed from agr.File
component. This ensures the backend is notified of the file removal action.gradio/static/js/client.js
to emit an event to the backend when a file is removed from agr.File
component. This front-end handling complements the backend changes to provide full support for the new file deletion event.For more details, open the Copilot Workspace session.