Fix/adjust diffusion: pin requests chain in no-deps runtime for PR #5754
The Studio backend's no-torch-runtime.txt is installed via pip --no-deps so the diffusion stack's transitive imports must be pinned explicitly. huggingface_hub's blob downloader (used by diffusers.GGUFQuantizationConfig and by every from_single_file call) imports requests + urllib3 + charset_normalizer at module load time; a fresh --no-deps install would 500 on the first /api/inference/images/load with PackageNotFoundError: 'requests'. Adds requests, urllib3, and charset_normalizer to the transitive-deps block next to the existing httpx chain.
This commit is contained in:
parent
fb0a31b9a5
commit
f3f3f06dc1
1 changed files with 6 additions and 0 deletions
|
|
@ -57,6 +57,12 @@ gguf
|
|||
regex
|
||||
typing_extensions
|
||||
filelock
|
||||
# `requests` and its urllib3/charset chain are required by huggingface_hub's
|
||||
# blob downloader; diffusers + GGUFQuantizationConfig 500 on first
|
||||
# /api/inference/images/load otherwise.
|
||||
requests
|
||||
urllib3
|
||||
charset_normalizer
|
||||
httpx
|
||||
httpcore
|
||||
certifi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue