This commit is contained in:
SOULOFCINDER 2023-04-06 17:11:02 +08:00
parent 410f6b3dbf
commit 9f229d8448
6 changed files with 14 additions and 6 deletions

@ -1 +0,0 @@
Subproject commit 91d6cee3b7b5a3ad94d8c0401279799d2df48ede

@ -1 +0,0 @@
Subproject commit 98fa7221c16e42a74d589f00f376ee55e17df3dc

@ -1 +0,0 @@
Subproject commit ae7a80ac3ae316a6415306b9277c1619fd54da28

View File

@ -2,6 +2,10 @@
FROM public.ecr.aws/iflytek-open/cuda-go-python-base:11.6-1.17-3.9.13-ubuntu1804
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list
RUN sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN --mount=target=/root/packages.txt,source=packages.txt apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
WORKDIR /home/user/app
RUN useradd -m -u 1000 user
@ -14,8 +18,13 @@ RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
RUN pip install --no-cache-dir pip==22.3.1
RUN --mount=target=requirements.txt,source=requirements.txt pip install --no-cache-dir -r requirements.txt
COPY --chown=1000 ./ /home/user/app
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt-get install git-lfs
RUN git lfs install
RUN git https://huggingface.co/akhaliq/ArcaneGANv0.2
RUN git https://huggingface.co/akhaliq/ArcaneGANv0.3
RUN git https://huggingface.co/akhaliq/ArcaneGANv0.4
CMD ["python3", "app.py"]

View File

@ -142,7 +142,7 @@ def process(im, version):
title = "ArcaneGAN"
description = "Gradio demo for ArcaneGAN, portrait to Arcane style. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
description = "ArcaneGAN的Gradio demo, 把图片转换成Arcane style。上传你想要的图像或者点击下面的示例来加载它。"
article = "<div style='text-align: center;'>ArcaneGan by <a href='https://twitter.com/devdef' target='_blank'>Alexander S</a> | <a href='https://github.com/Sxela/ArcaneGAN' target='_blank'>Github Repo</a> | <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_arcanegan' alt='visitor badge'></center></div>"
gr.Interface(
@ -158,4 +158,4 @@ gr.Interface(
examples=[['images/bill.png', 'version 0.3'], ['images/keanu.png', 'version 0.4'], ['images/will.jpeg', 'version 0.4']],
allow_flagging=False,
allow_screenshot=False
).launch()
).launch(server_name="0.0.0.0")

2
ArcaneGAN/packages.txt Normal file
View File

@ -0,0 +1,2 @@
git
curl