vitgpt
Build-Deploy-Actions Details

This commit is contained in:
jianjiang 2023-04-26 16:15:07 +08:00
parent 63eaaf6378
commit d301c8c8a3
2 changed files with 6 additions and 2 deletions

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

3
app.py
View File

@ -42,8 +42,9 @@ def predict(image):
demo = gr.Interface(fn=predict,
inputs='image',
outputs='text',
title = "image2text",
theme = theme,
css = "footer {visibility: hidden}",
allow_flagging = "never"
examples = ['soccer.jpg'])