Spaces:
Runtime error
Runtime error
Commit ·
9a6c837
1
Parent(s): 84b64be
Fix: Add Dockerfile with Python 3.11 and huggingface_hub<0.24.0
Browse files- .python-version +1 -0
- Dockerfile +15 -0
- 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
|