NaveenKumar Namachivayam commited on
Commit
cc23e38
·
1 Parent(s): c5f7937

fix: pin starlette and fastapi versions to fix Gradio unhashable type error

Browse files
Files changed (3) hide show
  1. hf-space/requirements.txt +3 -1
  2. pyproject.toml +9 -6
  3. requirements.txt +3 -0
hf-space/requirements.txt CHANGED
@@ -1,2 +1,4 @@
1
  torch>=2.0.0
2
- gradio>=4.0.0
 
 
 
1
  torch>=2.0.0
2
+ gradio>=4.44.1
3
+ starlette<0.40.0
4
+ fastapi<0.115.0
pyproject.toml CHANGED
@@ -5,10 +5,13 @@ description = "Train a GPT from scratch on a MacBook"
5
  readme = "README.md"
6
  requires-python = ">=3.12"
7
  dependencies = [
8
- "datasets>=4.5.0",
9
- "huggingface-hub>=1.8.0",
10
- "numpy>=2.0.2",
11
- "tiktoken>=0.12.0",
12
- "torch>=2.8.0",
13
- "tqdm>=4.67.3",
 
 
 
14
  ]
 
5
  readme = "README.md"
6
  requires-python = ">=3.12"
7
  dependencies = [
8
+ "datasets>=2.15.0",
9
+ "huggingface-hub>=0.19.0",
10
+ "numpy>=1.26.0",
11
+ "tiktoken>=0.5.0",
12
+ "torch>=2.1.0",
13
+ "tqdm>=4.66.0",
14
+ "gradio>=4.44.1",
15
+ "starlette<0.40.0",
16
+ "fastapi<0.115.0",
17
  ]
requirements.txt CHANGED
@@ -1,2 +1,5 @@
1
  torch>=2.0.0
 
 
 
2
  huggingface_hub==0.20.0
 
1
  torch>=2.0.0
2
+ gradio>=4.44.1
3
+ starlette<0.40.0
4
+ fastapi<0.115.0
5
  huggingface_hub==0.20.0