sd-vae-ft-ms
Build-Deploy-Actions Details

This commit is contained in:
jianjiang 2023-04-26 15:20:34 +08:00
parent be633ce72f
commit 14874eb5ef
3 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -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"]

2
app.py
View File

@ -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'])