File size: 702 Bytes
38d4385
 
 
 
 
 
 
 
19d1fa8
6bdfa78
473bf51
38d4385
829102d
38d4385
 
6bdfa78
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM python:3.9

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y
RUN curl -o models.h5 "https://drive.usercontent.google.com/download?id=1T5HGnk9Mxlb5G6FTxp26BWSrTpzbjtP2&export=download&authuser=0"
RUN curl -o best.pt "https://drive.usercontent.google.com/download?id=1qG-tEw5j7P1hPQxTlDrXun32gRp3v3DA&export=download&authuser=0"
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN mkdir input
COPY . .

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]