h-sam
Build-Deploy-Actions Details

This commit is contained in:
jianjiang 2023-04-26 16:45:53 +08:00
parent 4065b557aa
commit c089edb89f
2 changed files with 6 additions and 2 deletions

View File

@ -5,10 +5,13 @@ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
WORKDIR /app
COPY . /app
COPY requirement.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"]

3
app.py
View File

@ -81,8 +81,9 @@ def segment_image(image):
demo = gr.Interface(fn=segment_image,
inputs=gr.Image(),
outputs=gr.Image(),
title = "图像分割",
theme = theme,
css = "footer {visibility: hidden}",
allow_flagging = "never",
examples = ['dog.jpg'])