From a7c97c9f87969ce04e3505a5dcde7892fb8a14b1 Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 16:06:46 +0800 Subject: [PATCH] vilt --- Dockerfile | 5 ++++- app.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5b47bb2..79a59f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,12 @@ 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 +COPY . /app + + CMD ["python", "app.py"] diff --git a/app.py b/app.py index 4733fb5..8b4ad5e 100644 --- a/app.py +++ b/app.py @@ -30,8 +30,9 @@ def vqa(image, question): demo = gr.Interface(fn=vqa, inputs=['image', 'text'], outputs='text', - title = "vqa", theme=theme, + css = "footer {visibility: hidden}", + allow_flagging = "never", examples = [['soccer.jpg', 'how many people in the picture?']])