informative
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
d239138089
commit
148d72d7a8
|
@ -3,9 +3,12 @@ FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . /app
|
COPY requirements.txt /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"]
|
||||||
|
|
6
app.py
6
app.py
|
@ -123,6 +123,10 @@ examples=[['cat.png', '风格1'], ['bridge.png', '风格1'], ['lizard.png', '风
|
||||||
|
|
||||||
iface = gr.Interface(predict, [gr.inputs.Image(type='filepath'),
|
iface = gr.Interface(predict, [gr.inputs.Image(type='filepath'),
|
||||||
gr.inputs.Radio(['风格1','风格2'], type="value", default='风格1')],
|
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")
|
iface.launch(server_name = "0.0.0.0")
|
||||||
|
|
Loading…
Reference in New Issue