AndrewRqy commited on
Commit
18d3b9f
·
1 Parent(s): 0da3d81

Pin huggingface_hub<0.34 — gradio 4.44 still

Browse files
Files changed (1) hide show
  1. requirements.txt +6 -1
requirements.txt CHANGED
@@ -1,5 +1,10 @@
1
- # Gradio frontend
 
 
 
 
2
  gradio>=4.44,<6
 
3
 
4
  # OpenAI client — used as the SDK for the Modal-hosted vLLM endpoint
5
  openai>=1.40
 
1
+ # Gradio frontend.
2
+ # Pin huggingface_hub<0.34 because gradio 4.44.x still imports HfFolder,
3
+ # which was removed from huggingface_hub in 0.34. Without this pin HF's
4
+ # Space env auto-resolves huggingface_hub to a too-new version and the
5
+ # import in gradio/oauth.py fails on boot.
6
  gradio>=4.44,<6
7
+ huggingface_hub>=0.23,<0.34
8
 
9
  # OpenAI client — used as the SDK for the Modal-hosted vLLM endpoint
10
  openai>=1.40