diff --git a/Dockerfile b/Dockerfile index 7dad473..dd5096f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +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 b0af631..301cf39 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", )