CoolFace
Apppublic

Penguin-Sucks/MLProject

sourceHugging Faceupdated 1y agoView on Hugging Face
1likes
Dockerfile25 linesDownload Raw Back to root
1# Use official Python slim image2FROM python:3.10-slim3 4# Install system deps for librosa5RUN apt-get update && \6    apt-get install -y --no-install-recommends \7       ffmpeg libsndfile1 && \8    rm -rf /var/lib/apt/lists/*9 10# Set working directory11WORKDIR /app12 13# Copy and install dependencies14COPY requirements.txt ./15RUN pip install --no-cache-dir -r requirements.txt16 17# Copy code and model18COPY app.py ./19COPY Trained_model.h5 ./20 21# Expose default Spaces port22EXPOSE 786023 24# Start app25CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]