gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
34.11k stars 2.59k forks source link

Call `run_extra_startup_events` in Lite #10000

Closed whitphx closed 1 day ago

whitphx commented 3 days ago

Description

Found that run_extra_startup_events is not called in the Lite env.

Closes: https://github.com/gradio-app/gradio/issues/9491

gradio-pr-bot commented 3 days ago

🪼 branch checks and previews

• Name Status URL
Spaces ready! Spaces preview
Website ready! Website preview
:unicorn: Changes detected! Details

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/4f989383b9d5cde04e4e899f482da91bb9011b39/gradio-5.6.0-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@4f989383b9d5cde04e4e899f482da91bb9011b39#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/4f989383b9d5cde04e4e899f482da91bb9011b39/gradio-client-1.8.0.tgz

Use Lite from this PR

<script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/4f989383b9d5cde04e4e899f482da91bb9011b39/dist/lite.js""></script>
gradio-pr-bot commented 3 days ago

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
gradio patch

With the following changelog entry.

Call run_extra_startup_events in Lite

Maintainers or the PR author can modify the PR title to modify this entry.

#### Something isn't right? - Maintainers can change the version label to modify the version bump. - If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can [update the changelog file directly](https://github.com/gradio-app/gradio/edit/lite-run-extra-startup-events/.changeset/purple-bugs-see.md).