From 148d72d7a8052c528c58f1d2837f53734ba46580 Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 17:02:55 +0800 Subject: [PATCH] informative --- Dockerfile | 5 ++++- app.py | 6 +++++- 2 files changed, 9 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 6402e74..a2403b7 100644 --- a/app.py +++ b/app.py @@ -123,6 +123,10 @@ examples=[['cat.png', '风格1'], ['bridge.png', '风格1'], ['lizard.png', '风 iface = gr.Interface(predict, [gr.inputs.Image(type='filepath'), gr.inputs.Radio(['风格1','风格2'], type="value", default='风格1')], - gr.outputs.Image(type="pil"), examples=examples) + gr.outputs.Image(type="pil"), examples=examples, + css = "footer {visibility: hidden}", + allow_flagging = "never", + theme=theme +) iface.launch(server_name = "0.0.0.0")