trocr
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
436ee2fc39
commit
5f140fccb4
|
@ -1,10 +1,14 @@
|
||||||
|
#FROM python:3.8.13
|
||||||
FROM artifacts.iflytek.com/docker-private/atp/base_image_for_ailab:0.0.1
|
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
|
@ -26,8 +26,9 @@ def ocr(image):
|
||||||
demo = gr.Interface(fn=ocr,
|
demo = gr.Interface(fn=ocr,
|
||||||
inputs='image',
|
inputs='image',
|
||||||
outputs='text',
|
outputs='text',
|
||||||
title = "ocr",
|
|
||||||
theme = theme,
|
theme = theme,
|
||||||
|
css = "footer {visibility: hidden}",
|
||||||
|
allow_flagging = "never",
|
||||||
examples = ['printed.jpg'])
|
examples = ['printed.jpg'])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue