t5small
Build-Deploy-Actions Details

This commit is contained in:
jianjiang 2023-04-26 16:04:26 +08:00
parent 931e3a8a80
commit f6efb4c35d
2 changed files with 8 additions and 3 deletions

View File

@ -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"]

5
app.py
View File

@ -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",
)