2-1
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
12217bc8cb
commit
2bd0a9beae
|
@ -3,9 +3,12 @@ FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
|
||||||
|
|
||||||
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"]
|
||||||
|
|
3
app.py
3
app.py
|
@ -31,8 +31,9 @@ def text2image(prompt):
|
||||||
demo = gr.Interface(fn=text2image,
|
demo = gr.Interface(fn=text2image,
|
||||||
inputs='text',
|
inputs='text',
|
||||||
outputs='image',
|
outputs='image',
|
||||||
title = "text2image",
|
|
||||||
theme = theme,
|
theme = theme,
|
||||||
|
css = "footer {visibility: hidden}",
|
||||||
|
allow_flagging = "never",
|
||||||
examples = ['a photo of an astronaut riding a horse on mars'])
|
examples = ['a photo of an astronaut riding a horse on mars'])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue