Spaces:
Configuration error
Configuration error
File size: 590 Bytes
519d358 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use Python 3.9 slim base
FROM python:3.9-slim
# Install system dependencies
RUN apt-get update && apt-get install -y ffmpeg git && apt-get clean
# Set work directory
WORKDIR /app
# Install Python packages
RUN pip install --upgrade pip
RUN pip install torch torchaudio
RUN pip install fastapi uvicorn
RUN pip install git+https://github.com/facebookresearch/demucs
# Copy your inference script into the container
COPY predict.py .
# Expose port for FastAPI
EXPOSE 8000
# Run the FastAPI app
CMD ["uvicorn", "predict:app", "--host", "0.0.0.0", "--port", "8000"]
|