Spaces:
Runtime error
Runtime error
FROM registry.us-west-1.aliyuncs.com/modelscope-repo/modelscope:ubuntu20.04-cuda11.7.1-py38-torch2.0.1-tf1.15.5-1.8.1 | |
RUN useradd -m -u 1000 user | |
USER user | |
ENV HOME=/home/user \ | |
PATH=/home/user/.local/bin:$PATH | |
WORKDIR $HOME | |
RUN chmod 777 $HOME | |
RUN mkdir $HOME/modelscope_cache | |
ENV MODELSCOPE_CACHE=$HOME/modelscope_cache | |
ENV GRADIO_SERVER_NAME=0.0.0.0 | |
EXPOSE 7860 | |
RUN echo 'cloning facechain:hf_space_fact' | |
RUN git clone -b feat/hf_space_fact https://github.com/modelscope/facechain.git | |
WORKDIR $HOME/facechain | |
RUN pip install -r requirements.txt | |
ENV PYTHONPATH=. | |
RUN python init.py | |
CMD ["python", "app.py"] | |