Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
沈秋雨
/
weknora_ragas
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
127df0d6
...
127df0d66017d1731016b358ae19a76ed51b161d
authored
2026-04-21 16:50:57 +0800
by
沈秋雨
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use MinerU files multipart field
1 parent
599453fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/weknora_eval/parsers/mineru.py
src/weknora_eval/parsers/mineru.py
View file @
127df0d
...
...
@@ -135,7 +135,7 @@ def parse_pdf_with_http(
with
target
.
open
(
"rb"
)
as
file
:
response
=
requests
.
post
(
f
"{base_url}{endpoint}"
,
files
=
{
"file"
:
(
target
.
name
,
file
,
"application/pdf"
)}
,
files
=
[(
"files"
,
(
target
.
name
,
file
,
"application/pdf"
))]
,
headers
=
headers
,
timeout
=
int
(
mineru_config
.
get
(
"timeout_seconds"
,
600
)),
)
...
...
Please
register
or
sign in
to post a comment