update
This commit is contained in:
parent
902abbf84c
commit
f6252c28c3
|
@ -1,11 +1,11 @@
|
|||
# please visit https://github.com/xfyun/aiges/releases to get stable and suitable iamges.
|
||||
|
||||
FROM docker.io/library/python:3.8.9
|
||||
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 sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
|
||||
RUN sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|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
|
||||
|
@ -18,8 +18,11 @@ 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 clone http://172.16.59.16:3000/rubentito/layoutlmv3-base-mpdocvqa.git
|
||||
|
||||
CMD ["python3", "app.py"]
|
|
@ -26,7 +26,7 @@ def inference(img):
|
|||
|
||||
|
||||
title = "layoutlmv3-base-mpdocvqa"
|
||||
description = "Gradio Demo for layoutlmv3-base-mpdocvqa. To use it, simply upload your image, or click one of the examples to load them."
|
||||
description = "这是layoutlmv3-base-mpdocvqa的Gradio Demo,用于视觉问答。"
|
||||
article = "<p style='text-align: center'><a href='https://github.com/bryandlee/animegan2-pytorch' target='_blank'>Github Repo Pytorch</a></p> <center><img src='https://visitor-badge.glitch.me/badge?page_id=akhaliq_animegan' alt='visitor badge'></center></p>"
|
||||
examples = [['example_cat.jpg'], ['Masahiro.png']]
|
||||
|
||||
|
@ -39,4 +39,4 @@ demo = gr.Interface(
|
|||
article=article,
|
||||
examples=examples)
|
||||
|
||||
demo.launch()
|
||||
demo.launch(server_name="0.0.0.0")
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
libgl1-mesa-glx
|
Loading…
Reference in New Issue