File size: 841 Bytes
7aa5047
9accf07
5dd4ef1
bb38961
bfd2bb9
72930e5
bfd2bb9
73c3ea8
f812510
9adaa93
 
 
9accf07
73c3ea8
a748802
425f55b
5f95ef2
9de8227
be3bd0c
2684ff4
c78bec2
2684ff4
9accf07
63eba07
3d0abd5
4bcb45e
3d0abd5
069712a
80b5ab3
c047773
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
FROM python:3.10.0

WORKDIR /usr/src/
RUN git clone https://github.com/szymonrucinski/good-mood/
WORKDIR /usr/src/good-mood
RUN git checkout master
RUN ls /usr/src/good-mood
RUN  pip install --upgrade pip

RUN mkdir -m 777 /tmp/NUMBA_CACHE_DIR /tmp/MPLCONFIGDIR
ENV NUMBA_CACHE_DIR=/tmp/NUMBA_CACHE_DIR/
ENV MPLCONFIGDIR=/tmp/MPLCONFIGDIR/

RUN pip install -r /usr/src/good-mood/requirements.txt
RUN apt update
RUN apt-get install -y libsndfile1-dev
RUN pip install pysndfile
RUN pip install moviepy
RUN mkdir -m 777 flagged
RUN apt-get install git-lfs
RUN apt-get install ffmpeg -y
RUN apt-get update

RUN git clone https://huggingface.co/szymonrucinski/good-mood/
RUN apt-get update
RUN mv ./good-mood/alexnet-good-mood.pt ./model.pt

EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
# CMD ["gradio","app.py"]