From b99851ce76175e032682b0ad7f46fade9a18534a Mon Sep 17 00:00:00 2001 From: Florent Tapponnier Date: Mon, 22 Jun 2026 18:36:32 +0200 Subject: [PATCH] hotfix(hf-space): pin starlette + fastapi for gradio 4.44.1 compat Space deployed in RUNTIME_ERROR. gradio 4.44.1 does not constrain starlette / fastapi tightly enough and the latest releases (starlette 0.42+, fastapi 0.116+) break the Jinja2 template path at boot. Pinning to the bands known to work with gradio 4.44.x. --- scripts/hf_space/requirements.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/hf_space/requirements.txt b/scripts/hf_space/requirements.txt index bffab3e4..dfbe0feb 100644 --- a/scripts/hf_space/requirements.txt +++ b/scripts/hf_space/requirements.txt @@ -1,4 +1,9 @@ gradio==4.44.1 +# gradio 4.44.1 leaves starlette/fastapi unpinned and recent versions +# break the Jinja2 template path with a TypeError at app boot. Pin to +# versions known to work with gradio 4.44.x. +starlette<0.42 +fastapi<0.116 polars>=1.41.0 pandas==2.2.3 pyarrow==17.0.0