t5base
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
041dc4df00
commit
969afa6d6d
|
@ -3,9 +3,10 @@ FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
|
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
|
||||||
#RUN pip install -r requirements.txt
|
#RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
CMD ["python", "app.py"]
|
CMD ["python", "app.py"]
|
||||||
|
|
3
app.py
3
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')],
|
inputs=['text', gr.inputs.Radio(['German','French','Romanian'], type='value', default='German', label='language')],
|
||||||
outputs='text',
|
outputs='text',
|
||||||
theme = theme,
|
theme = theme,
|
||||||
title = "翻译"
|
css = "footer {visibility: hidden}",
|
||||||
|
allow_flagging = "never"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue