Pybunny commited on
Commit
7fdeb8d
·
verified ·
1 Parent(s): 3bfe518

Pin huggingface_hub<1.0 to fix gradio HfFolder ImportError

Browse files
Files changed (1) hide show
  1. requirements.txt +2 -1
requirements.txt CHANGED
@@ -2,7 +2,8 @@ torch>=2.1
2
  numpy>=1.24
3
  matplotlib>=3.7
4
  gradio>=4.44
5
- huggingface_hub>=0.24
 
6
  # Pull the nilmbench package from the companion GitHub repo so the Space's
7
  # "Benchmark your model" tab reuses the same runner/evaluator/report code.
8
  nilmbench @ git+https://github.com/Saharmgh/NILMbench@main
 
2
  numpy>=1.24
3
  matplotlib>=3.7
4
  gradio>=4.44
5
+ # Pin <1.0: huggingface_hub 1.x dropped HfFolder which gradio 4.x still imports.
6
+ huggingface_hub>=0.24,<1.0
7
  # Pull the nilmbench package from the companion GitHub repo so the Space's
8
  # "Benchmark your model" tab reuses the same runner/evaluator/report code.
9
  nilmbench @ git+https://github.com/Saharmgh/NILMbench@main