official.ghost.logic commited on
Commit
fda26e2
·
1 Parent(s): 09d5a09

Optimize requirements.txt for faster HF Spaces build

Browse files

- Use exact versions instead of >= to speed up dependency resolution
- Remove unused dependencies (dice, fastmcp, rich, tqdm, pillow, requests)
- Keep only essential packages for Gradio app
- Should fix containerd timeout issues

Files changed (1) hide show
  1. requirements.txt +13 -30
requirements.txt CHANGED
@@ -1,37 +1,20 @@
1
- # D&D Campaign Manager - Hugging Face Space Requirements
2
- # Production dependencies only
3
 
4
  # Core Framework
5
- gradio>=5.0.0
6
- pydantic>=2.0.0
7
- python-dotenv>=1.0.0
8
 
9
- # AI/LLM Providers
10
- anthropic>=0.39.0
11
- google-generativeai>=0.8.0
12
- openai>=1.54.0
13
-
14
- # MCP (Model Context Protocol)
15
- fastmcp>=0.2.0
16
-
17
- # Database & Storage
18
- # Note: SQLite is built into Python, no extra deps needed
19
 
20
  # Data Processing
21
- pyyaml>=6.0.0
22
- jinja2>=3.1.0
23
-
24
- # Dice & Game Mechanics
25
- dice>=4.0.0
26
-
27
- # Image Generation (Optional)
28
- pillow>=10.0.0
29
- requests>=2.31.0
30
 
31
  # Document Parsing
32
- python-docx>=1.1.0
33
- pypdf>=3.17.0
34
-
35
- # Utilities
36
- rich>=13.0.0
37
- tqdm>=4.66.0
 
1
+ # D&D Campaign Manager - Minimal Requirements for HF Spaces
2
+ # Optimized for faster build times
3
 
4
  # Core Framework
5
+ gradio==5.0.0
6
+ pydantic==2.9.0
7
+ python-dotenv==1.0.0
8
 
9
+ # AI/LLM Providers (specific versions for faster resolution)
10
+ anthropic==0.39.0
11
+ google-generativeai==0.8.0
12
+ openai==1.54.0
 
 
 
 
 
 
13
 
14
  # Data Processing
15
+ pyyaml==6.0.0
16
+ jinja2==3.1.0
 
 
 
 
 
 
 
17
 
18
  # Document Parsing
19
+ python-docx==1.1.0
20
+ pypdf==3.17.0