Gradio 4.44.1 still imports HfFolder from huggingface_hub, which no
longer exists in huggingface_hub 1.x (the version the base image
installs). 6.24.0 is what we validated locally against this app.py,
including that the gradio_client._json_schema_to_python_type symbol
the monkey-patch targets is still present.
Gradio 4.39.0's oauth.py imports HfFolder from huggingface_hub, which
recent versions of huggingface_hub have removed. 4.44.1 is the last 4.x
release that drops that import, keeping the existing gradio_client
monkey-patch in app.py compatible.
The Space runtime on HF is Python 3.13, which removed the stdlib
audioop module that pydub (a gradio dependency) imports at load time.
audioop-lts is the community backport that restores it.