Spaces:
Sleeping
Sleeping
File size: 1,736 Bytes
1db6498 aa34f54 3dcae4b aa34f54 3dcae4b 8f0d95a 1147ac2 9c84d41 8f0d95a 9c84d41 4628693 8f0d95a 4628693 5084ce8 9c84d41 e0b68b9 9c84d41 921b398 9c84d41 18013bc aa34f54 8f0d95a aa34f54 5084ce8 aa34f54 3dcae4b aa34f54 3dcae4b | 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | FROM python:3.10-slim
WORKDIR /app
COPY packages.txt /app/packages.txt
RUN apt-get update && \
apt-get install -y --no-install-recommends git gcc libc6-dev build-essential && \
xargs apt-get install -y --no-install-recommends < /app/packages.txt && \
rm -rf /var/lib/apt/lists/*
ENV PIP_NO_BUILD_ISOLATION=1
RUN pip install --no-cache-dir -U pip wheel setuptools==80.9.0
RUN pip install --no-cache-dir numpy==1.23.5
RUN pip install --no-cache-dir llvmlite==0.40.0 numba==0.57.0
RUN pip install --no-cache-dir protobuf==3.20.3
RUN pip install --no-cache-dir tensorflow-cpu==2.12.0
# ddsp deps - note_seq pinned to 0.0.3 (pre protobuf-5 pb2 files)
# tensorflow-datasets omitted (training only, not needed for inference)
RUN pip install --no-cache-dir \
absl-py \
future \
six \
"gin-config>=0.3.0" \
"scipy<=1.10.1" \
"librosa<=0.10" \
"pydub<=0.25.1" \
"mir_eval<=0.7" \
note_seq==0.0.3 \
"hmmlearn<=0.2.7" \
"dill<=0.3.4" \
"cloudml-hypertune<=0.1.0.dev6" \
"tensorflow-probability<=0.19" \
"tflite_support<=0.1"
RUN pip install --no-cache-dir crepe==0.0.12 --no-build-isolation
RUN pip install --no-cache-dir ddsp==3.2.0 --no-deps
RUN PIP_CONSTRAINT="" pip install --no-cache-dir midi-ddsp --no-deps
RUN pip install --no-cache-dir pretty-midi music21 soundfile
RUN pip install --no-cache-dir git+https://github.com/TEAMuP-dev/pyharp.git@v0.3.0
RUN pip install --no-cache-dir gradio==5.28.0
RUN pip install --no-cache-dir --force-reinstall numpy==1.23.5 protobuf==3.20.3
COPY patch_ddsp.py /app/patch_ddsp.py
RUN python /app/patch_ddsp.py
COPY . /app
ENV PORT=7860
EXPOSE 7860
ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=UTF-8
CMD ["python", "-u", "app.py"]
|