diff --git a/.app.py.swp b/.app.py.swp deleted file mode 100644 index 55bf0f9..0000000 Binary files a/.app.py.swp and /dev/null differ diff --git a/Dockerfile b/Dockerfile index 5b47bb2..79a59f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,12 @@ FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1 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 8b0c4fc..5442012 100644 --- a/app.py +++ b/app.py @@ -25,8 +25,8 @@ def text2image(prompt): demo = gr.Interface(fn=text2image, inputs='text', outputs='image', - title = "text2image", theme = theme, + css = "footer {visibility: hidden}", examples = ['a photo of an astronaut riding a horse on mars'])