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
59af01ad
"vscode:/vscode.git/clone" did not exist on "1d480298c10b9f097f7a35200e51248947be9bd2"
Commit
59af01ad
authored
Nov 25, 2024
by
zhougaofeng
Browse files
Update pdf_client.py
parent
8ffec57d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
magic_pdf/parse/pdf_client.py
magic_pdf/parse/pdf_client.py
+1
-2
No files found.
magic_pdf/parse/pdf_client.py
View file @
59af01ad
...
@@ -27,11 +27,10 @@ class ocrPdfClient:
...
@@ -27,11 +27,10 @@ class ocrPdfClient:
logger
.
error
(
f
'Health check request failed:
{
e
}
'
)
logger
.
error
(
f
'Health check request failed:
{
e
}
'
)
return
False
return
False
def
ocr_pdf_client
(
self
,
config_path
,
path
,
output_dir
):
def
ocr_pdf_client
(
self
,
path
,
output_dir
):
payload
=
{
payload
=
{
"path"
:
str
(
path
),
"path"
:
str
(
path
),
"output_dir"
:
str
(
output_dir
),
"output_dir"
:
str
(
output_dir
),
"config_path"
:
str
(
config_path
),
}
}
# logger.info(f'reading: {payload}')
# logger.info(f'reading: {payload}')
try
:
try
:
...
...
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