Claude commited on
Commit
26c3bfb
·
unverified ·
1 Parent(s): 7ab16ce

fix: pin pydantic<2.11 to prevent Gradio schema crash

Browse files

Pydantic 2.11+ generates boolean values in JSON schemas where
gradio_client expects dicts, causing "argument of type 'bool' is
not iterable" in get_api_info(). Pinning pydantic<2.11 avoids
the incompatibility.

Ref: https://github.com/gradio-app/gradio/issues/11084

https://claude.ai/code/session_01TGQvouqnomLvJVhu7TZXGP

Files changed (1) hide show
  1. requirements.txt +1 -0
requirements.txt CHANGED
@@ -1,3 +1,4 @@
1
  gradio==5.12.0
 
2
  httpx>=0.27.0
3
  Pillow>=10.0.0
 
1
  gradio==5.12.0
2
+ pydantic<2.11
3
  httpx>=0.27.0
4
  Pillow>=10.0.0