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
1c17f2f8
Commit
1c17f2f8
authored
Oct 25, 2024
by
zhougaofeng
Browse files
Update pdf_client.py
parent
055b2e78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/parse/pdf_client.py
magic_pdf/parse/pdf_client.py
+1
-1
No files found.
magic_pdf/parse/pdf_client.py
View file @
1c17f2f8
...
@@ -32,7 +32,7 @@ class ocrPdfClient:
...
@@ -32,7 +32,7 @@ class ocrPdfClient:
"path"
:
str
(
path
),
"path"
:
str
(
path
),
"output_dir"
:
str
(
output_dir
),
"output_dir"
:
str
(
output_dir
),
}
}
logger
.
info
(
f
'reading:
{
path
}
'
)
#
logger.info(f'reading: {path}')
try
:
try
:
response
=
requests
.
post
(
f
"
{
self
.
api_url
}
/pdf_ocr"
,
json
=
payload
)
response
=
requests
.
post
(
f
"
{
self
.
api_url
}
/pdf_ocr"
,
json
=
payload
)
output_dir
=
response
.
json
()[
'output_path'
]
output_dir
=
response
.
json
()[
'output_path'
]
...
...
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