-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Use ContextVar instead of threading.local() #5625
Conversation
🪼 branch checks and previews
|
🦄 change detectedThis Pull Request includes changes to the following packages.
With the following changelog entry.
Maintainers or the PR author can modify the PR title to modify this entry.
|
1fc9940
to
e858899
Compare
This reverts commit 2a76eb4.
✅ New test is actually failing when reverting the fix : https://github.com/gradio-app/gradio/actions/runs/6250289188/job/16968822471?pr=5625#step:15:82 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, works great! Thanks @cbensimon!
Thanks @cbensimon and @aliabid94! |
Closes #5623
Also add
gr.Request
in the newLocalContext