File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed
Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -40,4 +40,4 @@ COPY . .
4040
4141
4242HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
43- CMD wget --no-verbose -O /dev/null --tries=1 http://localhost :5996/healthcheck || exit 1
43+ CMD wget --no-verbose -O /dev/null --tries=1 http://stt_service :5996/healthcheck || exit 1
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RUN useradd -m intel
99# Install dependencies
1010WORKDIR /opt
1111RUN apt-get update && apt-get install -y \
12- build-essential libsndfile1 git \
12+ build-essential libsndfile1 git wget \
1313 && rm -rf /var/lib/apt/lists/*
1414
1515# Install Melo TTS
@@ -20,17 +20,13 @@ RUN mkdir -p thirdparty && \
2020 pip install -e . && \
2121 python -m unidic download
2222
23- # Install IPEX
24- RUN python3 -m pip install --pre --upgrade ipex-llm[xpu] --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ && \
25- python3 -m pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30.post0 oneccl_bind_pt==2.1.300+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ && \
26- python3 -m pip install setuptools==69.5.1 numpy==1.26.4 && \
27- python3 -m pip install transformers==4.43.3 accelerate==0.33.0 datasets==2.20.0 peft==0.12.0 bitsandbytes==0.43.2 scipy==1.14.0 fire==0.6.0 trl==0.9.6
28-
2923WORKDIR /usr/src/app
3024COPY requirements.txt .
3125RUN python3 -m pip install -r requirements.txt
32- COPY . .
26+ COPY nltk_download.py .
3327RUN python3 nltk_download.py
3428
35- HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
36- CMD wget --no-verbose -O /dev/null --tries=1 http://localhost:5995/healthcheck || exit 1
29+ COPY . .
30+
31+ HEALTHCHECK --interval=30s --timeout=180s --start-period=50s --retries=5 \
32+ CMD wget --no-verbose -O /dev/null --tries=1 http://tts_service:5995/healthcheck || exit 1
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ docker compose up -d
7676* Click on ` Settings `
7777* Replace OpenAI API link:
7878 * Click on ` Connections `
79- * Replace the OpenAI API link with ` http://ollama-1 :11434/v1 ` and provide any API Key.
79+ * Replace the OpenAI API link with ` http://ollama:11434/v1 ` and provide any API Key.
8080 * Click on ` Verify Connection ` to ensure the server connection is verified.
8181 * Click ` Save ` button for save the changes
8282
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ services:
4949 restart : always
5050 ports :
5151 - 80:8080
52+ depends_on :
53+ stt_service :
54+ condition : service_healthy
55+ tts_service :
56+ condition : service_healthy
5257 networks :
5358 - app-network
5459 environment :
You can’t perform that action at this time.
0 commit comments