From 5170483b4cc006a9bff15e27040caee793c88a4e Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 15:17:59 +0800 Subject: [PATCH] vit-gpt2-image-captioning --- Dockerfile | 5 ++++- app.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index acac5c1..9f9167f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1 WORKDIR /app -COPY . /app + +COPY requirements.txt /app RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple RUN pip install -r requirements.txt @@ -11,4 +12,6 @@ RUN pip install -r requirements.txt RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y +COPY . /app + CMD ["python", "app.py"] diff --git a/app.py b/app.py index ec956d0..dfc1080 100644 --- a/app.py +++ b/app.py @@ -36,4 +36,4 @@ demo = gr.Interface(fn=ocr, if __name__ == "__main__": - demo.queue(concurrency_count=10).launch(server_name = "0.0.0.0", share=True) + demo.queue(concurrency_count=10).launch(server_name = "0.0.0.0")