Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://huggingface.co/buckets/gradio/pypi-previews/resolve/6bb3b3b5e236ffa8e9db8cc15028491d05dbae77/gradio-6.14.0-py3-none-any.whlInstall Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@6bb3b3b5e236ffa8e9db8cc15028491d05dbae77#subdirectory=client/python"Install Gradio JS Client from this PR npm install https://gradio-npm-previews.s3.amazonaws.com/6bb3b3b5e236ffa8e9db8cc15028491d05dbae77/gradio-client-2.2.0.tgz |
🦄 change detectedThis Pull Request includes changes to the following packages.
✅ Changeset approved by @freddyaboulton
|
|
This approach looks good to me @cbensimon |
For context I am working on sibling PR: I'll add the ZeroGPUMiddleware registration part once ready on PS: Keeping you updated! |
freddyaboulton
left a comment
There was a problem hiding this comment.
Code looks good @cbensimon ! Tried to test myself with spaces 0.50.0 dev version but the spaces image is hardcoding version 0.48
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
There are 3 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit df84193. Configure here.


Note
Medium Risk
Adds conditional ZeroGPU middleware and new multiprocessing-aware queue message routing, which can affect request handling and progress/log delivery on Spaces. Risk is moderate due to concurrency/process-boundary behavior changes gated by environment flags.
Overview
Adds native ZeroGPU support by conditionally installing
spaces.zero.ZeroGPUMiddlewarewhen running in a ZeroGPU Space, including mapping ZeroGPU errors into GradioErrors and emitting logs via Gradio’s logger.Introduces
MultiprocessWorkerContextualizerto refreshLocalContextin persistent worker processes and updates queue progress/log messaging to optionally forward updates from child processes back to the main server process whenGRADIO_QUEUE_MULTIPROCESSING_ENABLED=true.Also removes legacy
spaces.gradio_auto_wrapwrapping ofBlockFunction, makes server start timeout configurable viaGRADIO_START_TIMEOUT, and updates test/deps tooling to includespaces>=0.50.dev0(and avoid pin exclusion forspaces).Reviewed by Cursor Bugbot for commit 6bb3b3b. Bugbot is set up for automated code reviews on this repo. Configure here.