Spaces:
Runtime error
Runtime error
| FROM python:3.11 | |
| # Definir HOME y rutas de cach茅 para Hugging Face | |
| WORKDIR /home/user/app | |
| ENV HOME="/tmp" | |
| ENV HF_HOME="/tmp/.cache/huggingface" | |
| ENV OMP_NUM_THREADS=1 | |
| # Configuraci贸n de Git v铆a variables de entorno (sin .gitconfig) | |
| ENV GIT_AUTHOR_NAME="sob111" | |
| ENV GIT_AUTHOR_EMAIL="[email protected]" | |
| ENV GIT_COMMITTER_NAME="sob111" | |
| ENV GIT_COMMITTER_EMAIL="[email protected]" | |
| # Instalar dependencias del sistema | |
| RUN apt-get update && apt-get install -y \ | |
| git wget ffmpeg libsndfile1 unzip build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip uninstall -y hf_transfer || true | |
| # Instalar dependencias Python | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| # Instalar Coqui TTS en editable mode desde v0.22.0 | |
| RUN git clone --branch v0.22.0 https://github.com/coqui-ai/TTS.git /home/user/TTS \ | |
| && cd /home/user/TTS \ | |
| && git submodule update --init --recursive \ | |
| && pip install --no-cache-dir -e . | |
| # Crear directorio de salida para checkpoints | |
| RUN mkdir -p /tmp/output_model | |
| # Copiar el proyecto | |
| COPY . . | |
| # Verificar instalaci贸n | |
| RUN pip show TTS | |
| # Entrenamiento: usa "python -m TTS.bin.train" en lugar de tts_train | |
| # RUN python -m TTS.bin.train --help | |
| # Comando por defecto (se puede sobreescribir en Space) | |
| CMD ["python", "app.py"] | |
| # CMD ["python", "finetune_xtts_hf.py"] | |