vit-age-classifier
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
6b0b9fd9ef
commit
6caf6f3eed
|
@ -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"]
|
||||||
|
|
7
app.py
7
app.py
|
@ -48,9 +48,8 @@ gr.Interface(
|
||||||
predict,
|
predict,
|
||||||
inputs,
|
inputs,
|
||||||
outputs = 'label',
|
outputs = 'label',
|
||||||
title=title,
|
css = "footer {visibility: hidden}",
|
||||||
description=description,
|
allow_flagging = "never",
|
||||||
article=article,
|
|
||||||
examples=examples,
|
examples=examples,
|
||||||
theme=theme,
|
theme=theme,
|
||||||
).launch(debug=True, enable_queue=True, server_name = "0.0.0.0")
|
).launch(enable_queue=True, server_name = "0.0.0.0")
|
||||||
|
|
Loading…
Reference in New Issue