From a9da60a03e84d3326886b27ea4071b796f0cc083 Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 16:18:31 +0800 Subject: [PATCH] resnet50 --- Dockerfile | 3 ++- app.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6f7bb5..c4a909f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,10 @@ FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1 WORKDIR /app -COPY . /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 03e010f..3c13799 100644 --- a/app.py +++ b/app.py @@ -28,7 +28,8 @@ def image_classification(image): demo = gr.Interface(fn=image_classification, inputs=gr.Image(), outputs=gr.Label(num_top_classes=1), - title = "图像分类", + css = "footer {visibility: hidden}", + allow_flagging = "never", theme = theme, examples = ['dog.jpeg'])