Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug duplicating spaces with default cpu hardware #4583

Merged
merged 7 commits into from
Jun 21, 2023

Conversation

freddyaboulton
Copy link
Collaborator

@freddyaboulton freddyaboulton commented Jun 20, 2023

Description

Closes: #4579

The problem was that setting a timeout is only possible if the hardware is not cpu-basic.

This PR only sets the timeout if the requested or current hardware is not cpu-basic.

With this PR:

image

🎯 PRs Should Target Issues

Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.

Not adhering to this guideline will result in the PR being closed.

Tests & Changelog

  1. PRs will only be merged if tests pass on CI. To run the tests locally, please set up your Gradio environment locally and run the tests: bash scripts/run_all_tests.sh

  2. You may need to run the linters: bash scripts/format_backend.sh and bash scripts/format_frontend.sh

  3. Unless the pull request is labeled with the "no-changelog-update" label by a maintainer of the repo, all pull requests must update the changelog located in CHANGELOG.md:

Please add a brief summary of the change to the Upcoming Release section of the CHANGELOG.md file and include
a link to the PR (formatted in markdown) and a link to your github profile (if you like). For example, "* Added a cool new feature by [@myusername](link-to-your-github-profile) in [PR 11111](https://github.com/gradio-app/gradio/pull/11111)".

@gradio-pr-bot
Copy link
Collaborator

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-4583-all-demos

@freddyaboulton freddyaboulton marked this pull request as ready for review June 20, 2023 23:43
@freddyaboulton freddyaboulton requested a review from abidlabs June 20, 2023 23:43
@abidlabs
Copy link
Member

Confirms this fixes this issue, thanks @freddyaboulton!

@abidlabs
Copy link
Member

Let me go ahead and merge this in as we have a lot of open PRs at the moment

@abidlabs abidlabs merged commit 2e351ec into main Jun 21, 2023
@abidlabs abidlabs deleted the 4579-fix-space-duplication-error branch June 21, 2023 19:57
@pngwn pngwn mentioned this pull request Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

client.Duplicate consistently raises SpaceDuplicationError
3 participants