Speedofmastery commited on
Commit
0bd2092
·
1 Parent(s): 25bbaff

Fix: Streamline dependencies and simplify app for reliable HuggingFace Spaces deployment

Browse files
Files changed (2) hide show
  1. requirements.txt +26 -69
  2. requirements_backup.txt +76 -0
requirements.txt CHANGED
@@ -1,76 +1,33 @@
1
- pydantic~=2.10.6
2
- openai~=1.66.3
3
- tenacity~=9.0.0
4
- pyyaml~=6.0.2
5
- loguru~=0.7.3
6
- numpy
7
- datasets~=3.4.1
8
- fastapi~=0.115.11
9
- tiktoken~=0.9.0
10
 
11
- html2text~=2024.2.26
12
- gymnasium~=1.1.1
13
- pillow~=11.1.0
14
- browsergym~=0.13.3
15
- uvicorn~=0.34.0
16
- unidiff~=0.7.5
17
- browser-use~=0.1.40
18
- googlesearch-python~=1.3.0
19
- baidusearch~=1.0.3
20
- duckduckgo_search~=7.5.3
21
-
22
- aiofiles~=24.1.0
23
- pydantic_core~=2.27.2
24
- colorama~=0.4.6
25
- playwright~=1.51.0
26
-
27
- docker~=7.1.0
28
- pytest~=8.3.5
29
- pytest-asyncio~=0.25.3
30
-
31
- mcp~=1.5.0
32
- httpx>=0.27.0
33
- tomli>=2.0.0
34
-
35
- boto3~=1.37.18
36
-
37
- requests~=2.32.3
38
- beautifulsoup4~=4.13.3
39
- crawl4ai~=0.6.3
40
-
41
- huggingface-hub~=0.29.2
42
- transformers~=4.46.0
43
- torch>=2.0.0
44
  gradio>=4.0,<5.0
45
- setuptools~=75.8.0
46
 
47
- # Authentication dependencies
48
- bcrypt~=4.0.1
 
 
 
 
49
 
50
- # Cloudflare integrations - Complete stack
51
- aiohttp~=3.9.0
52
- websockets~=12.0
53
- httpx~=0.25.0
54
- cloudflare~=2.20.1
55
- cffi~=1.16.0
56
- cryptography~=42.0.0
57
 
58
- # Additional backend dependencies
59
- asyncio-mqtt~=0.16.2
60
- aiodns~=3.2.0
61
- cchardet~=2.1.7
62
- charset-normalizer~=3.4.0
63
- python-dotenv~=1.0.0
64
 
65
- # Essential dependencies for production deployment
66
- pandas>=1.5.0
67
- numpy>=1.21.0
68
- Pillow>=8.0.0
69
- python-multipart>=0.0.5
70
- email-validator>=1.1.0
71
- passlib>=1.7.4
72
- python-jose>=3.3.0
73
 
74
- # Additional dependencies for Hugging Face Spaces and models integration
75
- gradio~=4.44.0
76
- spaces~=0.19.4
 
 
1
+ # Core framework - compatible versions
2
+ fastapi>=0.100.0,<0.116.0
3
+ uvicorn>=0.20.0,<0.35.0
4
+ pydantic>=2.0,<3.0
5
+ starlette>=0.35.0,<0.42.0
 
 
 
 
6
 
7
+ # Gradio and UI - stable version
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  gradio>=4.0,<5.0
 
9
 
10
+ # HTTP and networking - core only
11
+ httpx>=0.25.0,<0.29.0
12
+ requests>=2.28.0,<2.33.0
13
+
14
+ # Database - minimal setup
15
+ bcrypt>=4.0.0,<5.0.0
16
 
17
+ # AI essentials - lightweight
18
+ openai>=1.0.0,<2.0.0
19
+ huggingface-hub>=0.20.0,<1.0.0
 
 
 
 
20
 
21
+ # Basic utilities
22
+ python-dotenv>=1.0.0,<2.0.0
23
+ pyyaml>=6.0,<7.0
24
+ python-multipart>=0.0.6
 
 
25
 
26
+ # System utilities
27
+ pillow>=10.0.0
28
+ numpy>=1.20.0
 
 
 
 
 
29
 
30
+ # Additional basics
31
+ typing-extensions>=4.0.0
32
+ loguru>=0.7.0
33
+ tenacity>=8.0.0
requirements_backup.txt ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pydantic~=2.10.6
2
+ openai~=1.66.3
3
+ tenacity~=9.0.0
4
+ pyyaml~=6.0.2
5
+ loguru~=0.7.3
6
+ numpy
7
+ datasets~=3.4.1
8
+ fastapi~=0.115.11
9
+ tiktoken~=0.9.0
10
+
11
+ html2text~=2024.2.26
12
+ gymnasium~=1.1.1
13
+ pillow~=11.1.0
14
+ browsergym~=0.13.3
15
+ uvicorn~=0.34.0
16
+ unidiff~=0.7.5
17
+ browser-use~=0.1.40
18
+ googlesearch-python~=1.3.0
19
+ baidusearch~=1.0.3
20
+ duckduckgo_search~=7.5.3
21
+
22
+ aiofiles~=24.1.0
23
+ pydantic_core~=2.27.2
24
+ colorama~=0.4.6
25
+ playwright~=1.51.0
26
+
27
+ docker~=7.1.0
28
+ pytest~=8.3.5
29
+ pytest-asyncio~=0.25.3
30
+
31
+ mcp~=1.5.0
32
+ httpx>=0.27.0
33
+ tomli>=2.0.0
34
+
35
+ boto3~=1.37.18
36
+
37
+ requests~=2.32.3
38
+ beautifulsoup4~=4.13.3
39
+ crawl4ai~=0.6.3
40
+
41
+ huggingface-hub~=0.29.2
42
+ transformers~=4.46.0
43
+ torch>=2.0.0
44
+ gradio>=4.0,<5.0
45
+ setuptools~=75.8.0
46
+
47
+ # Authentication dependencies
48
+ bcrypt~=4.0.1
49
+
50
+ # Cloudflare integrations - Complete stack
51
+ aiohttp~=3.9.0
52
+ websockets~=12.0
53
+ httpx~=0.25.0
54
+ cloudflare~=2.20.1
55
+ cffi~=1.16.0
56
+ cryptography~=42.0.0
57
+
58
+ # Additional backend dependencies
59
+ asyncio-mqtt~=0.16.2
60
+ aiodns~=3.2.0
61
+ cchardet~=2.1.7
62
+ charset-normalizer~=3.4.0
63
+ python-dotenv~=1.0.0
64
+
65
+ # Essential dependencies for production deployment
66
+ pandas>=1.5.0
67
+ numpy>=1.21.0
68
+ Pillow>=8.0.0
69
+ python-multipart>=0.0.5
70
+ email-validator>=1.1.0
71
+ passlib>=1.7.4
72
+ python-jose>=3.3.0
73
+
74
+ # Additional dependencies for Hugging Face Spaces and models integration
75
+ gradio~=4.44.0
76
+ spaces~=0.19.4