Closed Col0ring closed 3 months ago
• | Name | Status | URL |
---|---|---|---|
Spaces | ready! | Spaces preview | |
Website | ready! | Website preview | |
:unicorn: | Changes | failed! | Workflow log |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/fcc4396235236fcae945b90a2a746a88db795884/gradio-4.32.2-py3-none-any.whl
Install Gradio Python Client from this PR
pip install "gradio-client @ git+https://github.com/gradio-app/gradio@fcc4396235236fcae945b90a2a746a88db795884#subdirectory=client/python"
Install Gradio JS Client from this PR
npm install https://gradio-builds.s3.amazonaws.com/fcc4396235236fcae945b90a2a746a88db795884/gradio-client-0.20.1.tgz
Description
gradio/routes.py
Change
Path(path).read_text().encode()
toPath(path).read_text(encoding="utf-8").encode()
to support custom components with i18n code.Closes: #8426
🎯 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