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

Fix spaces load error #8415

Closed aliabid94 closed 1 month ago

aliabid94 commented 1 month ago

Fixes spaces load error on old spaces that don't provide id's in their dependencies.

Test with

<gradio-app
        src="https://gradio-chatinterface-streaming-echo.hf.space"
    ></gradio-app>      
gradio-pr-bot commented 1 month 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-builds.s3.amazonaws.com/af9cb091e0d3b31cad8643c8dcf76df2f7a91fbc/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@af9cb091e0d3b31cad8643c8dcf76df2f7a91fbc#subdirectory=client/python"

Install Gradio JS Client from this PR

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

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
@gradio/client minor
gradio minor

With the following changelog entry.

Fix spaces load error

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/fix_load_spaces_config_error/.changeset/strong-years-battle.md).