Spaces:
Sleeping

Rthur2003 commited on
Commit
5ee5954
·
1 Parent(s): 7ac6163

Update Python version in Dockerfile and adjust requirements for flexibility

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. requirements.txt +34 -33
Dockerfile CHANGED
@@ -4,7 +4,8 @@
4
  # SDK: Docker | Hardware: CPU Basic (Free)
5
  # ============================================
6
 
7
- FROM python:3.10-slim
 
8
 
9
  # Çalışma dizini
10
  WORKDIR /app
 
4
  # SDK: Docker | Hardware: CPU Basic (Free)
5
  # ============================================
6
 
7
+ # Python 3.11 slim imajını kullan
8
+ FROM python:3.11-slim
9
 
10
  # Çalışma dizini
11
  WORKDIR /app
requirements.txt CHANGED
@@ -1,45 +1,46 @@
1
- # ============================================
2
- # CrownCode Backend Dependencies
3
- # Hugging Face Spaces (CPU Basic - Free Tier)
4
- # ============================================
5
- # PyTorch CPU version is installed via Dockerfile
6
- # ============================================
7
-
8
  # === Core Framework ===
9
- fastapi==0.109.0
10
- uvicorn[standard]==0.27.0
11
- pydantic==2.5.3
12
- python-multipart==0.0.6
13
-
14
- # === AI/ML (CPU) ===
15
- # PyTorch CPU installed separately in Dockerfile
16
- transformers==4.37.0
17
- accelerate==0.26.0
18
- datasets==2.16.1
 
 
 
 
 
19
 
20
  # === Audio Processing ===
21
- librosa==0.10.1
22
- soundfile==0.12.1
23
- audioread==3.0.1
24
- resampy==0.4.2
25
 
26
  # === Data Processing ===
27
- numpy==1.26.3
28
- pandas==2.1.4
29
- scipy==1.11.4
30
 
31
  # === API & Web ===
32
- aiohttp==3.9.1
33
- httpx==0.26.0
34
- requests==2.31.0
35
 
36
  # === Utilities ===
37
- python-dotenv==1.0.0
38
- pyyaml==6.0.1
39
- click==8.1.7
40
 
41
  # === Monitoring & Logging ===
42
- loguru==0.7.2
 
43
 
44
- # === YouTube Download ===
45
- yt-dlp==2024.1.0
 
 
 
 
 
 
 
 
 
 
1
  # === Core Framework ===
2
+ fastapi>=0.109.0
3
+ uvicorn[standard]>=0.27.0
4
+ pydantic>=2.5.3
5
+ python-multipart>=0.0.6
6
+
7
+ # === AI/ML (CPU version for Hugging Face Spaces) ===
8
+ # We will install torch CPU explicitly in Dockerfile to save space,
9
+ # but keeping it here without version pin is good practice for local dev.
10
+ # torch
11
+ # torchvision
12
+ # torchaudio
13
+
14
+ transformers>=4.37.0
15
+ accelerate>=0.26.0
16
+ datasets>=2.16.1
17
 
18
  # === Audio Processing ===
19
+ librosa>=0.10.1
20
+ soundfile>=0.12.1
21
+ audioread>=3.0.1
22
+ resampy>=0.4.2
23
 
24
  # === Data Processing ===
25
+ numpy>=1.26.3
26
+ pandas>=2.1.4
27
+ scipy>=1.11.4
28
 
29
  # === API & Web ===
30
+ aiohttp>=3.9.1
31
+ httpx>=0.26.0
32
+ requests>=2.31.0
33
 
34
  # === Utilities ===
35
+ python-dotenv>=1.0.0
36
+ pyyaml>=6.0.1
37
+ click>=8.1.7
38
 
39
  # === Monitoring & Logging ===
40
+ loguru>=0.7.2
41
+ prometheus-client>=0.19.0
42
 
43
+ # === YouTube/Spotify ===
44
+ # yt-dlp should always be latest to support new youtube updates
45
+ yt-dlp>=2024.1.0
46
+ spotdl>=4.2.4