Spaces:
Sleeping
Sleeping
fix timeout issue
Browse files- Dockerfile +1 -3
- app.py +2 -1
- requirements.txt +1 -2
Dockerfile
CHANGED
|
@@ -3,13 +3,11 @@ FROM python:3.12-slim
|
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
# Install system deps: espeak-ng, libsndfile
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
espeak-ng \
|
| 9 |
libespeak-ng-dev \
|
| 10 |
libsndfile1 \
|
| 11 |
-
build-essential \
|
| 12 |
-
cmake \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
# Point phonemizer at espeak-ng (Debian/Ubuntu path)
|
|
|
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# Install system deps: espeak-ng for phonemizer, libsndfile for soundfile
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
espeak-ng \
|
| 9 |
libespeak-ng-dev \
|
| 10 |
libsndfile1 \
|
|
|
|
|
|
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Point phonemizer at espeak-ng (Debian/Ubuntu path)
|
app.py
CHANGED
|
@@ -118,7 +118,8 @@ def get_tts():
|
|
| 118 |
print(f"Warning: Error resolving model path: {e}")
|
| 119 |
return root_path
|
| 120 |
|
| 121 |
-
|
|
|
|
| 122 |
print(f"Using backbone: {backbone_arg}")
|
| 123 |
print(f"Using codec: neuphonic/neucodec")
|
| 124 |
if not torch.cuda.is_available():
|
|
|
|
| 118 |
print(f"Warning: Error resolving model path: {e}")
|
| 119 |
return root_path
|
| 120 |
|
| 121 |
+
# Use full transformers model (neuphonic/neutts-air) to avoid llama-cpp build on cloud
|
| 122 |
+
backbone_arg = _resolve_hf_snapshot(local_backbone) if os.path.isdir(local_backbone) else "neuphonic/neutts-air"
|
| 123 |
print(f"Using backbone: {backbone_arg}")
|
| 124 |
print(f"Using codec: neuphonic/neucodec")
|
| 125 |
if not torch.cuda.is_available():
|
requirements.txt
CHANGED
|
@@ -7,5 +7,4 @@ torch==2.8.0
|
|
| 7 |
transformers==4.56.1
|
| 8 |
resemble-perth==1.0.1
|
| 9 |
gradio>=5.0
|
| 10 |
-
torchao==0.13.0
|
| 11 |
-
llama-cpp-python
|
|
|
|
| 7 |
transformers==4.56.1
|
| 8 |
resemble-perth==1.0.1
|
| 9 |
gradio>=5.0
|
| 10 |
+
torchao==0.13.0
|
|
|