# Constraints for the gradio 4.44.1 / Python 3.9 set. # # huggingface-hub<1.0 # gradio 4.44.1 imports huggingface_hub.HfFolder, removed in hub 1.0. # Without this pin, "import gradio" fails outright with ImportError. # # pydantic<2.11 # pydantic 2.11 began emitting "additionalProperties": true (a bool) in the # JSON schema it generates. gradio_client 1.3.0's schema walker assumes that # value is always a dict, so it raises # TypeError: argument of type 'bool' is not iterable # while building the API info for components such as gr.File and gr.JSON. # That takes out the /info endpoint, which in turn breaks gradio_client and # gradio's own startup reachability check. Fixed in gradio 5.x; on the 4.x # branch the only remedy is to hold pydantic below 2.11. huggingface-hub<1.0 pydantic<2.11