From 6caf6f3eed2cd66cc08a004b6926eb81d7eb9fbf Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 15:39:25 +0800 Subject: [PATCH] vit-age-classifier --- Dockerfile | 5 ++++- app.py | 7 +++---- 2 files changed, 7 insertions(+), 5 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 8f75faf..ec3fc7d 100644 --- a/app.py +++ b/app.py @@ -48,9 +48,8 @@ gr.Interface( predict, inputs, outputs = 'label', - title=title, - description=description, - article=article, + css = "footer {visibility: hidden}", + allow_flagging = "never", examples=examples, theme=theme, -).launch(debug=True, enable_queue=True, server_name = "0.0.0.0") +).launch(enable_queue=True, server_name = "0.0.0.0")