vitgpt
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
63eaaf6378
commit
d301c8c8a3
|
@ -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
|
@ -42,8 +42,9 @@ def predict(image):
|
||||||
demo = gr.Interface(fn=predict,
|
demo = gr.Interface(fn=predict,
|
||||||
inputs='image',
|
inputs='image',
|
||||||
outputs='text',
|
outputs='text',
|
||||||
title = "image2text",
|
|
||||||
theme = theme,
|
theme = theme,
|
||||||
|
css = "footer {visibility: hidden}",
|
||||||
|
allow_flagging = "never"
|
||||||
examples = ['soccer.jpg'])
|
examples = ['soccer.jpg'])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue