Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zhougaofeng
magic_pdf
Commits
6d0d2552
Commit
6d0d2552
authored
Oct 25, 2024
by
zhougaofeng
Browse files
Update ocr_mkcontent.py
parent
4781cd49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
magic_pdf/dict2md/ocr_mkcontent.py
magic_pdf/dict2md/ocr_mkcontent.py
+2
-2
No files found.
magic_pdf/dict2md/ocr_mkcontent.py
View file @
6d0d2552
...
@@ -424,7 +424,7 @@ def ocr_mk_mm_standard_format(pdf_info_dict: list):
...
@@ -424,7 +424,7 @@ def ocr_mk_mm_standard_format(pdf_info_dict: list):
return
content_list
return
content_list
def
union_make
(
def
union_make
(
ocr_status
:
str
,
config_path
:
str
,
config_path
:
str
,
pdf_info_dict
:
list
,
pdf_info_dict
:
list
,
make_mode
:
str
,
make_mode
:
str
,
...
@@ -438,7 +438,7 @@ def union_make(
...
@@ -438,7 +438,7 @@ def union_make(
url
=
config
.
get
(
'server'
,
'ocr_server'
)
url
=
config
.
get
(
'server'
,
'ocr_server'
)
# logger.info(f'ocr_server:{url}')
# logger.info(f'ocr_server:{url}')
client
=
PredictClient
(
url
)
client
=
PredictClient
(
url
)
status
=
client
.
check_health
()
status
=
ocr_status
if
not
status
:
if
not
status
:
logger
.
warning
(
f
'Health check failed. The server at "
{
url
}
" is not responding as expected.'
)
logger
.
warning
(
f
'Health check failed. The server at "
{
url
}
" is not responding as expected.'
)
logger
.
info
(
f
'Qwen ocr解析服务无法正常运行,暂不使用qwen解析表格服务'
)
logger
.
info
(
f
'Qwen ocr解析服务无法正常运行,暂不使用qwen解析表格服务'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment