gradio/.gitignore
Freddy Boulton 6a4bf7abe2
Delete user state when they close the tab. Add an unload event for the demo and a delete_callback on gr.State to let developers control how resources are cleaned up (#7829)
* Delete state

* add changeset

* Delete state

* WIP

* Add load event

* Working ttl

* unload e2e test

* Clean up

* add changeset

* Fix notebook

* add changeset

* Connect to heartbeat in python client

* 15 second heartbeat

* Demo for unload

* Add notebook

* add changeset

* Fix docs

* revert demo changes

* Add docstrings

* lint 🙄

* Edit

* handle shutdown issue

* state comments

* client test

* Fix:

* Fix e2e test

* 3.11 incompatibility

* delete after one hour

* lint + highlight

* Update .changeset/better-tires-shave.md

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update .changeset/better-tires-shave.md

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-01 18:31:56 -04:00

83 lines
1.0 KiB
Plaintext

# Python build
.eggs/
gradio.egg-info
dist/
*.pyc
__pycache__/
*.py[cod]
*$py.class
build/
__tmp/*
*.pyi
py.typed
# JS build
gradio/templates/*
gradio/node/*
gradio/_frontend_code/*
js/gradio-preview/test/*
# Secrets
.env
# Gradio run artifacts
*.db
*.sqlite3
gradio/launches.json
flagged/
gradio_cached_examples/
tmp.zip
# Tests
.coverage
coverage.xml
test.txt
**/snapshots/**/*.png
playwright-report/
# Demos
demo/tmp.zip
demo/files/*.avi
demo/files/*.mp4
demo/all_demos/demos/*
demo/all_demos/requirements.txt
demo/*/config.json
demo/annotatedimage_component/*.png
demo/fake_diffusion_with_gif/*.gif
demo/cancel_events/cancel_events_output_log.txt
demo/unload_event_test/output_log.txt
# Etc
.idea/*
.DS_Store
*.bak
workspace.code-workspace
*.h5
# dev containers
.pnpm-store/
# log files
.pnpm-debug.log
# Local virtualenv for devs
.venv*
# FRP
gradio/frpc_*
.vercel
# js
node_modules
public/build/
test-results
client/js/test.js
.config/test.py
# storybook
storybook-static
build-storybook.log
js/storybook/theme.css
# playwright
.config/playwright/.cache