lamhieu commited on
Commit
37c20ce
·
1 Parent(s): 57559fb

fix(deploy): pin huggingface_hub<1.0, align Dockerfile with LWE, valid HF colorTo

Browse files
Files changed (2) hide show
  1. pyproject.toml +5 -1
  2. requirements.txt +4 -0
pyproject.toml CHANGED
@@ -33,10 +33,14 @@ cachetools = ">=5.3,<6.0"
33
  psutil = ">=5.9,<7.0"
34
  gradio = { version = ">=4.40,<5.0", optional = true }
35
  pandas = { version = ">=2.0,<3.0", optional = true }
 
 
 
 
36
  requests = ">=2.31,<3.0"
37
 
38
  [tool.poetry.extras]
39
- ui = ["gradio", "pandas"]
40
 
41
  [tool.poetry.group.dev.dependencies]
42
  pytest = ">=8.0,<9.0"
 
33
  psutil = ">=5.9,<7.0"
34
  gradio = { version = ">=4.40,<5.0", optional = true }
35
  pandas = { version = ">=2.0,<3.0", optional = true }
36
+ # Gradio 4.x still imports ``HfFolder`` from ``huggingface_hub`` (removed in
37
+ # huggingface_hub 1.0). Keep the resolver on the 0.x line until we move to
38
+ # Gradio 5.x.
39
+ huggingface-hub = { version = ">=0.23,<1.0", optional = true }
40
  requests = ">=2.31,<3.0"
41
 
42
  [tool.poetry.extras]
43
+ ui = ["gradio", "pandas", "huggingface-hub"]
44
 
45
  [tool.poetry.group.dev.dependencies]
46
  pytest = ">=8.0,<9.0"
requirements.txt CHANGED
@@ -24,3 +24,7 @@ requests>=2.31,<3.0
24
  # Optional UI extras
25
  gradio>=4.40,<5.0
26
  pandas>=2.0,<3.0
 
 
 
 
 
24
  # Optional UI extras
25
  gradio>=4.40,<5.0
26
  pandas>=2.0,<3.0
27
+ # Gradio 4.x imports ``HfFolder`` from ``huggingface_hub`` (gradio/oauth.py),
28
+ # which was removed in huggingface_hub 1.0. Pin to the last 0.x line until we
29
+ # move to Gradio 5.x.
30
+ huggingface_hub>=0.23,<1.0