From 8528ed376f546314b2180266863d3062526213b5 Mon Sep 17 00:00:00 2001 From: jianjiang Date: Wed, 26 Apr 2023 16:44:40 +0800 Subject: [PATCH] l-sam --- Dockerfile | 5 +++-- app.py | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7f180db..16e8fe1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,11 @@ RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y WORKDIR /app -COPY . /app - +COPY requirements.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"] diff --git a/app.py b/app.py index dbb8643..56f8a20 100644 --- a/app.py +++ b/app.py @@ -81,7 +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'])