From 969afa6d6df6b69bbfb557cc792854d153c2ee99 Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 16:13:18 +0800 Subject: [PATCH] t5base --- Dockerfile | 3 ++- app.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4df7818..e1a2dad 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 fe96861..eddb19c 100644 --- a/app.py +++ b/app.py @@ -29,7 +29,8 @@ demo = gr.Interface(fn=translation, inputs=['text', gr.inputs.Radio(['German','French','Romanian'], type='value', default='German', label='language')], outputs='text', theme = theme, - title = "翻译" + css = "footer {visibility: hidden}", + allow_flagging = "never" )