From f6efb4c35d232451bc3da8e39b51becb6d7ca702 Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 16:04:26 +0800 Subject: [PATCH] t5small --- Dockerfile | 6 +++++- app.py | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f900b26..dd5096f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ +#FROM python:3.8.13 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 42cdf39..eb4f7ac 100644 --- a/app.py +++ b/app.py @@ -28,8 +28,9 @@ def translation(english, language): demo = gr.Interface(fn=translation, inputs=['text', gr.inputs.Radio(['German','French','Romanian'], type='value', default='German', label='language')], outputs='text', - title = "翻译", - theme = theme + theme = theme, + css = "footer {visibility: hidden}", + allow_flagging = "never", )