-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7eb6bc2
commit 2af0f0a
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-devel | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \ | ||
apt-get clean && apt-get -y autoremove | ||
|
||
WORKDIR /app | ||
COPY requirements_cpu.txt . | ||
RUN python -m pip install --use-deprecated=legacy-resolver -r requirements_cpu.txt \ | ||
&& python -m pip cache purge | ||
|
||
RUN python -m unidic download | ||
RUN mkdir -p /app/tts_models | ||
|
||
COPY main.py . | ||
ENV USE_CPU=1 | ||
|
||
ENV NUM_THREADS=2 | ||
EXPOSE 80 | ||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
TTS @ git+https://github.com/coqui-ai/TTS@fa28f99f1508b5b5366539b2149963edcb80ba62 | ||
uvicorn[standard]==0.23.2 | ||
fastapi==0.95.2 | ||
pydantic==1.10.13 | ||
python-multipart==0.0.6 | ||
typing-extensions>=4.8.0 | ||
numpy==1.24.3 | ||
cutlet | ||
mecab-python3==1.0.6 | ||
unidic-lite==1.0.8 | ||
unidic==1.1.0 |