aaloksan commited on
Commit
7b4b4f0
·
1 Parent(s): 663bc77

feat: enables share mode on hf

Browse files
Files changed (3) hide show
  1. app.py +1 -0
  2. pyproject.toml +9 -10
  3. requirements.txt +8 -10
app.py CHANGED
@@ -87,4 +87,5 @@ if __name__ == "__main__":
87
  show_error=True,
88
  server_name="0.0.0.0",
89
  server_port=int(os.getenv("PORT", "7860")),
 
90
  )
 
87
  show_error=True,
88
  server_name="0.0.0.0",
89
  server_port=int(os.getenv("PORT", "7860")),
90
+ share=bool(os.getenv("SPACE_ID")),
91
  )
pyproject.toml CHANGED
@@ -9,18 +9,17 @@ description = "OpenEnv-compatible CUDA kernel optimization environment."
9
  readme = "README.md"
10
  requires-python = ">=3.10"
11
  dependencies = [
12
- "fastapi>=0.112.0,<1.0",
13
- "uvicorn>=0.30.0",
14
- "pydantic>=2.7.0,<2.11",
15
  "openai>=1.0.0",
16
- "openenv-core==0.1.1",
17
  "python-dotenv>=1.0.0",
18
- "pillow>=10.4.0,<11",
19
- "audioop-lts>=0.2.2; python_version >= '3.13'",
20
- "huggingface-hub>=0.30,<1.0",
21
- "gradio==4.44.1",
22
- "datasets>=2.20.0",
23
- "trl>=0.12.0"
 
24
  ]
25
 
26
  [project.scripts]
 
9
  readme = "README.md"
10
  requires-python = ">=3.10"
11
  dependencies = [
12
+ "fastapi>=0.112.0",
13
+ "pydantic>=2.7.0",
 
14
  "openai>=1.0.0",
 
15
  "python-dotenv>=1.0.0",
16
+ "anthropic>=0.25.0",
17
+ "gradio>=4.0.0",
18
+ "flask>=3.0.0",
19
+ "pyyaml>=6.0.0",
20
+ "numpy>=1.24.0",
21
+ "jinja2>=3.1.2",
22
+ "pytest>=7.4.0"
23
  ]
24
 
25
  [project.scripts]
requirements.txt CHANGED
@@ -1,12 +1,10 @@
1
- pydantic>=2.7.0,<2.11
2
  openai>=1.0.0
3
- openenv-core==0.1.1
4
- gradio==4.44.1
5
- datasets>=2.20.0
6
- trl>=0.12.0
7
- pytest>=7.4.0
8
  pyyaml>=6.0.0
9
- python-dotenv
10
- pillow>=10.4.0,<11
11
- audioop-lts>=0.2.2; python_version >= "3.13"
12
- huggingface-hub>=0.30,<1.0
 
1
+ python-dotenv>=1.0.0
2
  openai>=1.0.0
3
+ anthropic>=0.25.0
4
+ gradio>=4.0.0
5
+ fastapi>=0.112.0
6
+ flask>=3.0.0
 
7
  pyyaml>=6.0.0
8
+ numpy>=1.24.0
9
+ jinja2>=3.1.2
10
+ pytest>=7.4.0