Spaces:
Sleeping
Sleeping
File size: 996 Bytes
87c2935 b0b1bfa 87c2935 905f6b2 6f79407 905f6b2 6f79407 b0b1bfa 595d7ce 87c2935 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | FROM python:3.11
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git git-lfs ffmpeg libsm6 libxext6 cmake libgl1 \
&& git lfs install
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir torch==2.2.2+cu121 torchaudio==2.2.2+cu121 \
--index-url https://download.pytorch.org/whl/cu121
RUN pip install --no-cache-dir -r requirements.txt
# # Install huggingface hub CLI
# RUN pip install huggingface_hub
# # Download model files
# RUN python -c "from huggingface_hub import hf_hub_download; \
# import os; \
# MODEL_DIR = 'my_model'; \
# os.makedirs(MODEL_DIR, exist_ok=True); \
# hf_hub_download('MariaKaiser/EGTTS_finetuned', 'config.json', cache_dir=MODEL_DIR); \
# hf_hub_download('MariaKaiser/EGTTS_finetuned', 'vocab.json', cache_dir=MODEL_DIR); \
# hf_hub_download('MariaKaiser/EGTTS_finetuned', 'model.pth', cache_dir=MODEL_DIR)"
# Copy the app code
COPY . .
# Run the app
CMD ["python", "app.py"] |