-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Client node fix #8252
Client node fix #8252
Conversation
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-builds.s3.amazonaws.com/315409214e5b66fc2f34b8c824b05e75813531b1/gradio-4.29.0-py3-none-any.whl Install Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@315409214e5b66fc2f34b8c824b05e75813531b1#subdirectory=client/python" |
🦄 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.
|
}).toThrow("Could not resolve app config"); | ||
expect(async () => { | ||
await app.open_stream(); | ||
}).rejects.toThrow("Could not resolve app config"); |
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.
Apparently this is how you catch async errors. who knew.
Thanks for catching that stream rename mistake! |
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.
Awesome, thanks @pngwn!
Description
Fixes the client in node, we just needed to await the module as it was trying to be used prior to the module being loaded.
I also had to change some things to async because of this change.
I also noticed that the
stream
rename in a previous PR actually renamed an internal method to stream, so I renamedstream_handler
tostream
as well.Closes: #8213
🎯 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
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
You may need to run the linters:
bash scripts/format_backend.sh
andbash scripts/format_frontend.sh