mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
fix: longer timeouts, fix on hf model pull
This commit is contained in:
parent
7d7da3ca1b
commit
3ca79c609f
3 changed files with 20 additions and 10 deletions
2
.github/workflows/docker-publish.yml
vendored
2
.github/workflows/docker-publish.yml
vendored
|
@ -72,7 +72,6 @@ jobs:
|
||||||
tags: ${{ steps.meta-gpu.outputs.tags }}
|
tags: ${{ steps.meta-gpu.outputs.tags }}
|
||||||
labels: ${{ steps.meta-gpu.outputs.labels }}
|
labels: ${{ steps.meta-gpu.outputs.labels }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
target: runtime
|
|
||||||
|
|
||||||
# Build and push CPU version
|
# Build and push CPU version
|
||||||
- name: Build and push CPU Docker image
|
- name: Build and push CPU Docker image
|
||||||
|
@ -84,7 +83,6 @@ jobs:
|
||||||
tags: ${{ steps.meta-cpu.outputs.tags }}
|
tags: ${{ steps.meta-cpu.outputs.tags }}
|
||||||
labels: ${{ steps.meta-cpu.outputs.labels }}
|
labels: ${{ steps.meta-cpu.outputs.labels }}
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
target: runtime
|
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
needs: build
|
needs: build
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
sh -c "
|
sh -c "
|
||||||
rm -f .git/index.lock;
|
rm -f .git/index.lock;
|
||||||
if [ -z \"$(ls -A .)\" ]; then
|
if [ -z \"$(ls -A .)\" ]; then
|
||||||
git clone https://huggingface.co/hexgrad/Kokoro-82M
|
git clone https://huggingface.co/hexgrad/Kokoro-82M .
|
||||||
touch .cloned;
|
touch .cloned;
|
||||||
else
|
else
|
||||||
rm -f .git/index.lock && \
|
rm -f .git/index.lock && \
|
||||||
|
@ -20,9 +20,9 @@ services:
|
||||||
"
|
"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "test", "-f", ".cloned"]
|
test: ["CMD", "test", "-f", ".cloned"]
|
||||||
interval: 3s
|
interval: 5s
|
||||||
timeout: 1s
|
timeout: 2s
|
||||||
retries: 120
|
retries: 300
|
||||||
start_period: 1s
|
start_period: 1s
|
||||||
|
|
||||||
kokoro-tts:
|
kokoro-tts:
|
||||||
|
@ -39,3 +39,15 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
model-fetcher:
|
model-fetcher:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
|
# Gradio UI service [Comment out everything below if you don't need it]
|
||||||
|
gradio-ui:
|
||||||
|
build:
|
||||||
|
context: ./ui
|
||||||
|
ports:
|
||||||
|
- "7860:7860"
|
||||||
|
volumes:
|
||||||
|
- ./ui/data:/app/ui/data
|
||||||
|
- ./ui/app.py:/app/app.py # Mount app.py for hot reload
|
||||||
|
environment:
|
||||||
|
- GRADIO_WATCH=True # Enable hot reloading
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
sh -c "
|
sh -c "
|
||||||
rm -f .git/index.lock;
|
rm -f .git/index.lock;
|
||||||
if [ -z \"$(ls -A .)\" ]; then
|
if [ -z \"$(ls -A .)\" ]; then
|
||||||
git clone https://huggingface.co/hexgrad/Kokoro-82M
|
git clone https://huggingface.co/hexgrad/Kokoro-82M .
|
||||||
touch .cloned;
|
touch .cloned;
|
||||||
else
|
else
|
||||||
rm -f .git/index.lock && \
|
rm -f .git/index.lock && \
|
||||||
|
@ -20,9 +20,9 @@ services:
|
||||||
"
|
"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "test", "-f", ".cloned"]
|
test: ["CMD", "test", "-f", ".cloned"]
|
||||||
interval: 3s
|
interval: 5s
|
||||||
timeout: 1s
|
timeout: 2s
|
||||||
retries: 120
|
retries: 300
|
||||||
start_period: 1s
|
start_period: 1s
|
||||||
|
|
||||||
kokoro-tts:
|
kokoro-tts:
|
||||||
|
|
Loading…
Add table
Reference in a new issue