picard47at Qwen-Coder commited on
Commit
9a6c837
·
1 Parent(s): 84b64be

Fix: Add Dockerfile with Python 3.11 and huggingface_hub<0.24.0

Browse files
Files changed (3) hide show
  1. .python-version +1 -0
  2. Dockerfile +15 -0
  3. requirements.txt +1 -1
.python-version ADDED
@@ -0,0 +1 @@
 
 
1
+ 3.11
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # 安裝依賴
4
+ COPY requirements.txt .
5
+ RUN pip install --no-cache-dir -r requirements.txt
6
+
7
+ # 安裝相容的 huggingface_hub 版本
8
+ RUN pip install --no-cache-dir "huggingface_hub<0.24.0"
9
+
10
+ # 複製應用
11
+ COPY . /app
12
+ WORKDIR /app
13
+
14
+ # 啟動應用
15
+ CMD ["python", "app.py"]
requirements.txt CHANGED
@@ -1,2 +1,2 @@
1
  numpy>=1.24.0,<2.0.0
2
- librosa>=0.10.0
 
1
  numpy>=1.24.0,<2.0.0
2
+ librosa>=0.10.0