ShashwatGupta23 commited on
Commit
75af375
·
1 Parent(s): 63a615f

Pin huggingface_hub<1.0 for Gradio 4.44 compatibility

Browse files
Files changed (2) hide show
  1. requirements.txt +2 -1
  2. setup.sh +3 -0
requirements.txt CHANGED
@@ -7,7 +7,8 @@ opencv-python-headless>=4.8.0
7
  pillow>=10.0.0
8
  numpy>=1.23.0
9
  pyyaml>=6.0
10
- huggingface_hub>=0.23.0
 
11
  matplotlib>=3.7.0
12
  scipy>=1.10.0
13
  psutil>=5.9.0
 
7
  pillow>=10.0.0
8
  numpy>=1.23.0
9
  pyyaml>=6.0
10
+ # Gradio 4.44 needs HfFolder (removed in huggingface_hub 1.x)
11
+ huggingface_hub>=0.23.0,<1.0
12
  matplotlib>=3.7.0
13
  scipy>=1.10.0
14
  psutil>=5.9.0
setup.sh CHANGED
@@ -2,6 +2,9 @@
2
  # Hugging Face Spaces: install vendored custom Ultralytics before app starts.
3
  set -euo pipefail
4
  cd "$(dirname "$0")"
 
 
 
5
  if [[ -d vendor ]]; then
6
  pip install -q -e ./vendor
7
  echo "Installed custom ultralytics from ./vendor"
 
2
  # Hugging Face Spaces: install vendored custom Ultralytics before app starts.
3
  set -euo pipefail
4
  cd "$(dirname "$0")"
5
+ # HF base image may install huggingface_hub 1.x; Gradio 4.44 needs <1.0 (HfFolder)
6
+ pip install -q "huggingface_hub>=0.23.0,<1.0"
7
+
8
  if [[ -d vendor ]]; then
9
  pip install -q -e ./vendor
10
  echo "Installed custom ultralytics from ./vendor"