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
30.65k stars 2.28k forks source link

Fixes to Website Demo Upload Script #8419

Closed aliabd closed 1 month ago

aliabd commented 1 month ago

We've been having a recurring issue where the script fails and many of the demos don't upload. It seems like the issue was with the create_repo function unnecessarily running too many times and creating a bunch of 409 errors which lead to 403 errors.

I made some changes:

I tested this with a list of over 500 demos and there wasn't any errors! Will keep an eye on it over next few days

gradio-pr-bot commented 1 month ago

🪼 branch checks and previews

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

Install Gradio from this PR

pip install https://gradio-builds.s3.amazonaws.com/db8554d2202a52d76f3312222fab6a98ff41b6cf/gradio-4.32.0-py3-none-any.whl

Install Gradio Python Client from this PR

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

Install Gradio JS Client from this PR

npm install https://gradio-builds.s3.amazonaws.com/db8554d2202a52d76f3312222fab6a98ff41b6cf/gradio-client-0.20.0.tgz
gradio-pr-bot commented 1 month ago

🦄 no changes detected

This Pull Request does not include changes to any packages.

No changes detected.

#### 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 [create the changelog file directly](https://github.com/gradio-app/gradio/new/aliabd/fix-demo-upload/.changeset/cruel-sheep-fix.md).