Commit
·
15edaa2
1
Parent(s):
90f5178
submit
Browse files- Dockerfile +2 -1
- requirements.txt +2 -1
Dockerfile
CHANGED
@@ -14,9 +14,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
14 |
# 复制应用代码和模型
|
15 |
COPY app.py .
|
16 |
COPY ct2_model/ ct2_model/
|
|
|
17 |
|
18 |
# 暴露端口
|
19 |
EXPOSE 7860
|
20 |
|
21 |
# 启动 FastAPI 应用
|
22 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
14 |
# 复制应用代码和模型
|
15 |
COPY app.py .
|
16 |
COPY ct2_model/ ct2_model/
|
17 |
+
COPY whisper_processor/ whisper_processor/
|
18 |
|
19 |
# 暴露端口
|
20 |
EXPOSE 7860
|
21 |
|
22 |
# 启动 FastAPI 应用
|
23 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
fastapi
|
2 |
uvicorn
|
3 |
soundfile
|
4 |
-
faster-whisper
|
|
|
|
1 |
fastapi
|
2 |
uvicorn
|
3 |
soundfile
|
4 |
+
faster-whisper
|
5 |
+
python-multipart
|