Skip to content

Conversation

moeshin
Copy link

@moeshin moeshin commented Mar 31, 2023

PantsuDango/DangoOCR#8

close #47

offline_ocr_cmd:
- D:\Projects\Python\DangoOCR\venv\Scripts\python.exe
- D:\Projects\Python\DangoOCR\app.py
- -p
- 6667
offline_ocr_url: http://127.0.0.1:6667/ocr/api

@moeshin moeshin marked this pull request as draft April 1, 2023 14:31
moeshin added 4 commits April 3, 2023 20:41
(cherry picked from commit 100e77c)
(cherry picked from commit bf499aa)
(cherry picked from commit c69524f)
@moeshin moeshin marked this pull request as ready for review April 3, 2023 12:59
@moeshin moeshin marked this pull request as draft April 4, 2023 00:43
@moeshin moeshin marked this pull request as ready for review April 4, 2023 00:54
Copy link

@touero touero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pep8的写法

# object.logger.error(format_exc())

url = "http://127.0.0.1:6666/ocr/api"
url = "http://127.0.0.1:%d/ocr/api" % object.yaml["port"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url = f'http://127.0.0.1:{object.yaml["port"]}/ocr/api'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

运行报错

2 participants