Closed zhzLuke96 closed 2 weeks ago
• | Name | Status | URL |
---|---|---|---|
Spaces | Spaces preview | ||
Website | Website preview | ||
:unicorn: | Changes | Details |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/c841ac8484eb4d18ef185ee583c75f4a6ff73b1e/gradio-4.36.1-py3-none-any.whl
Install Gradio Python Client from this PR
pip install "gradio-client @ git+https://github.com/gradio-app/gradio@c841ac8484eb4d18ef185ee583c75f4a6ff73b1e#subdirectory=client/python"
Install Gradio JS Client from this PR
npm install https://gradio-builds.s3.amazonaws.com/c841ac8484eb4d18ef185ee583c75f4a6ff73b1e/gradio-client-1.1.1.tgz
Package | Version |
---|---|
gradio |
patch |
Fix request serialization for fastapi
/docs
Maintainers or the PR author can modify the PR title to modify this entry.
This commit addresses a serialization issue in the
PredictBody
model that has been present since version 4.0. Therequest
attribute, being of typeRequest
, could not be serialized automatically, affecting FastAPI's auto-generated documentation (/openapi.json). By adding a custom__get_pydantic_json_schema__
method, the serialization schema is manually defined, ensuring correct documentation generation. This is also one of the reasons why applications like "stable-diffusion-webui," which require /docs pages, have not updated to newer versions of Gradio.Closes: #7287