ghmk commited on
Commit
4f63b33
·
1 Parent(s): c0aa9ee

fix: pin gradio<6.12 — 6.12 breaks iframe loading via bad by-subdomain call

Browse files

Gradio 6.12 introduced a frontend call to:
GET https://huggingface.co/api/spaces/by-subdomain/{space-id}

For Docker-based spaces, the HF API returns 400 Bad Request:
"Invalid repo name: cronos3k/LARQL-Explorer - repo name includes
an url-encoded slash"

Gradio 6.12 throws an uncaught exception on the 400, crashing the
entire Gradio initialization in iframe context. App is stuck at
"Loading..." indefinitely.

Fix: pin to <6.12 until Gradio fixes the by-subdomain error handling.

Files changed (1) hide show
  1. requirements.txt +1 -1
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
- gradio>=6.0.0
2
  huggingface_hub>=0.20.0
 
1
+ gradio>=6.0.0,<6.12
2
  huggingface_hub>=0.20.0