Spaces:
Runtime error
Runtime error
FROM python:3.12 | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
libgl1-mesa-glx \ | |
git \ | |
wget | |
# Install Python dependencies | |
RUN pip install --no-cache-dir \ | |
torch \ | |
torchvision \ | |
torchaudio \ | |
gradio \ | |
tqdm \ | |
pillow \ | |
numpy | |
# Clone the repository and set up the model | |
RUN git clone https://github.com/NVlabs/stylegan2-ada-pytorch.git /stylegan2-ada-pytorch | |
# Create the /app directory | |
RUN mkdir /app | |
# Copy application files to the /app directory | |
COPY app.py /app/app.py | |
COPY train.py /app/train.py | |
COPY ffhq.pkl /app/ffhq.pkl | |
WORKDIR /app | |
# Set the entrypoint | |
ENTRYPOINT ["python", "app.py"] | |