Download Dockerfile from sg123321/xtts67: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/spaces/sg123321/xtts67/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sg123321/xtts67/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sg123321/xtts67/resolve/main/Dockerfile
884 Bytes
| # Python 3.10 (Slim Version) | |
| FROM python:3.10-slim | |
| # Working Directory | |
| WORKDIR /app | |
| # 1. System Tools (GCC और Audio tools) | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| ffmpeg \ | |
| espeak-ng \ | |
| build-essential \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2. PyTorch Install (GPU Support) | |
| RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu118 | |
| # 3. XTTS Install (GitHub se) | |
| RUN pip install --no-cache-dir git+https://github.com/coqui-ai/TTS.git | |
| # 🛠️ ERROR FIX 1: Transformers ko downgrade kar rahe hain (Crash rokne ke liye) | |
| RUN pip install --no-cache-dir transformers==4.42.4 | |
| # 🛠️ ERROR FIX 2: 'supabase' add kiya hai (Jo abhi missing tha) | |
| RUN pip install --no-cache-dir gradio spaces numpy==1.26.4 supabase | |
| # Copy Files | |
| COPY . . | |
| # Port Expose | |
| EXPOSE 7860 | |
| # Run App | |
| CMD ["python", "app.py"] |