Spaces:
Paused
Paused
Support for gradio creating share link
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -13,6 +13,7 @@ RUN apt-get install python-is-python3 -y
|
|
| 13 |
RUN apt-get install pip -y
|
| 14 |
RUN apt-get install git -y
|
| 15 |
RUN apt-get install curl -y
|
|
|
|
| 16 |
RUN apt-get install ffmpeg -y
|
| 17 |
|
| 18 |
RUN git clone ${GIT_CLONE_URL} --branch ${FACEFUSION_VERSION} --single-branch .
|
|
@@ -32,6 +33,9 @@ COPY ./cloudinary.py /facefusion/facefusion/cloudinary.py
|
|
| 32 |
RUN sed -i '1i import facefusion.cloudinary\n' /facefusion/facefusion/core.py
|
| 33 |
RUN sed -i "/[[:space:]]conditional_log_statistics()/i\ facefusion.cloudinary.upload_file(normed_output_path)" /facefusion/facefusion/core.py
|
| 34 |
|
|
|
|
|
|
|
|
|
|
| 35 |
WORKDIR /facefusion
|
| 36 |
RUN python install.py --onnxruntime ${ONNUXRUNTIME} --skip-conda
|
| 37 |
CMD ["python", "run.py"]
|
|
|
|
| 13 |
RUN apt-get install pip -y
|
| 14 |
RUN apt-get install git -y
|
| 15 |
RUN apt-get install curl -y
|
| 16 |
+
RUN apt-get install wget -y
|
| 17 |
RUN apt-get install ffmpeg -y
|
| 18 |
|
| 19 |
RUN git clone ${GIT_CLONE_URL} --branch ${FACEFUSION_VERSION} --single-branch .
|
|
|
|
| 33 |
RUN sed -i '1i import facefusion.cloudinary\n' /facefusion/facefusion/core.py
|
| 34 |
RUN sed -i "/[[:space:]]conditional_log_statistics()/i\ facefusion.cloudinary.upload_file(normed_output_path)" /facefusion/facefusion/core.py
|
| 35 |
|
| 36 |
+
WORKDIR /usr/local/lib/python3.10/dist-packages/gradio
|
| 37 |
+
RUN wget -c -O frpc_linux_amd64_v0.2 https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64
|
| 38 |
+
|
| 39 |
WORKDIR /facefusion
|
| 40 |
RUN python install.py --onnxruntime ${ONNUXRUNTIME} --skip-conda
|
| 41 |
CMD ["python", "run.py"]
|