l-sam
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
ac786411b8
commit
8528ed376f
|
@ -5,10 +5,11 @@ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
||||||
|
|
||||||
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"]
|
||||||
|
|
4
app.py
4
app.py
|
@ -81,7 +81,9 @@ def segment_image(image):
|
||||||
demo = gr.Interface(fn=segment_image,
|
demo = gr.Interface(fn=segment_image,
|
||||||
inputs=gr.Image(),
|
inputs=gr.Image(),
|
||||||
outputs=gr.Image(),
|
outputs=gr.Image(),
|
||||||
title = "图像分割",
|
theme = theme,
|
||||||
|
css = "footer {visibility: hidden}",
|
||||||
|
allow_flagging = "never",
|
||||||
examples = ['dog.jpg'])
|
examples = ['dog.jpg'])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue