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 }}
|
||||
labels: ${{ steps.meta-gpu.outputs.labels }}
|
||||
platforms: linux/amd64
|
||||
target: runtime
|
||||
|
||||
# Build and push CPU version
|
||||
- name: Build and push CPU Docker image
|
||||
|
@ -84,7 +83,6 @@ jobs:
|
|||
tags: ${{ steps.meta-cpu.outputs.tags }}
|
||||
labels: ${{ steps.meta-cpu.outputs.labels }}
|
||||
platforms: linux/amd64
|
||||
target: runtime
|
||||
|
||||
create-release:
|
||||
needs: build
|
||||
|
|
|
@ -8,7 +8,7 @@ services:
|
|||
sh -c "
|
||||
rm -f .git/index.lock;
|
||||
if [ -z \"$(ls -A .)\" ]; then
|
||||
git clone https://huggingface.co/hexgrad/Kokoro-82M
|
||||
git clone https://huggingface.co/hexgrad/Kokoro-82M .
|
||||
touch .cloned;
|
||||
else
|
||||
rm -f .git/index.lock && \
|
||||
|
@ -20,9 +20,9 @@ services:
|
|||
"
|
||||
healthcheck:
|
||||
test: ["CMD", "test", "-f", ".cloned"]
|
||||
interval: 3s
|
||||
timeout: 1s
|
||||
retries: 120
|
||||
interval: 5s
|
||||
timeout: 2s
|
||||
retries: 300
|
||||
start_period: 1s
|
||||
|
||||
kokoro-tts:
|
||||
|
@ -39,3 +39,15 @@ services:
|
|||
depends_on:
|
||||
model-fetcher:
|
||||
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 "
|
||||
rm -f .git/index.lock;
|
||||
if [ -z \"$(ls -A .)\" ]; then
|
||||
git clone https://huggingface.co/hexgrad/Kokoro-82M
|
||||
git clone https://huggingface.co/hexgrad/Kokoro-82M .
|
||||
touch .cloned;
|
||||
else
|
||||
rm -f .git/index.lock && \
|
||||
|
@ -20,9 +20,9 @@ services:
|
|||
"
|
||||
healthcheck:
|
||||
test: ["CMD", "test", "-f", ".cloned"]
|
||||
interval: 3s
|
||||
timeout: 1s
|
||||
retries: 120
|
||||
interval: 5s
|
||||
timeout: 2s
|
||||
retries: 300
|
||||
start_period: 1s
|
||||
|
||||
kokoro-tts:
|
||||
|
|
Loading…
Add table
Reference in a new issue