informative
Build-Deploy-Actions Details

This commit is contained in:
jianjiang 2023-04-26 17:02:55 +08:00
parent d239138089
commit 148d72d7a8
2 changed files with 9 additions and 2 deletions

View File

@ -3,9 +3,12 @@ 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"]

6
app.py
View File

@ -123,6 +123,10 @@ examples=[['cat.png', '风格1'], ['bridge.png', '风格1'], ['lizard.png', '风
iface = gr.Interface(predict, [gr.inputs.Image(type='filepath'),
gr.inputs.Radio(['风格1','风格2'], type="value", default='风格1')],
gr.outputs.Image(type="pil"), examples=examples)
gr.outputs.Image(type="pil"), examples=examples,
css = "footer {visibility: hidden}",
allow_flagging = "never",
theme=theme
)
iface.launch(server_name = "0.0.0.0")