resnet50
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
6cf5ab23c3
commit
a9da60a03e
|
@ -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
|
@ -28,7 +28,8 @@ def image_classification(image):
|
||||||
demo = gr.Interface(fn=image_classification,
|
demo = gr.Interface(fn=image_classification,
|
||||||
inputs=gr.Image(),
|
inputs=gr.Image(),
|
||||||
outputs=gr.Label(num_top_classes=1),
|
outputs=gr.Label(num_top_classes=1),
|
||||||
title = "图像分类",
|
css = "footer {visibility: hidden}",
|
||||||
|
allow_flagging = "never",
|
||||||
theme = theme,
|
theme = theme,
|
||||||
examples = ['dog.jpeg'])
|
examples = ['dog.jpeg'])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue