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
92785015
Commit
92785015
authored
Oct 24, 2024
by
zhougaofeng
Browse files
Update ocr_mkcontent.py
parent
eb6926bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/dict2md/ocr_mkcontent.py
magic_pdf/dict2md/ocr_mkcontent.py
+1
-1
No files found.
magic_pdf/dict2md/ocr_mkcontent.py
View file @
92785015
...
...
@@ -130,7 +130,7 @@ def ocr_mk_markdown_with_para_core_v2(config_path,paras_of_layout,
url
=
config
.
get
(
'server'
,
'ocr_server'
)
# logger.info(f'ocr_server:{url}')
client
=
PredictClient
(
url
)
status
=
PredictC
lient
.
check_health
()
status
=
c
lient
.
check_health
()
if
not
status
:
pdf_ocr
=
None
logger
.
warning
(
f
'Health check failed. The server at "
{
url
}
" is not responding as expected.'
)
...
...
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