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
wangsen
MinerU
Commits
c08a86d6
Unverified
Commit
c08a86d6
authored
Jul 05, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Jul 05, 2025
Browse files
Update projects/multi_gpu_v2/server.py
Co-authored-by:
Copilot
<
175728472+Copilot@users.noreply.github.com
>
parent
919280aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
projects/multi_gpu_v2/server.py
projects/multi_gpu_v2/server.py
+3
-3
No files found.
projects/multi_gpu_v2/server.py
View file @
c08a86d6
...
@@ -43,9 +43,9 @@ class MinerUAPI(ls.LitAPI):
...
@@ -43,9 +43,9 @@ class MinerUAPI(ls.LitAPI):
options
=
request
.
get
(
'options'
,
{})
options
=
request
.
get
(
'options'
,
{})
file_bytes
=
base64
.
b64decode
(
file_b64
)
file_bytes
=
base64
.
b64decode
(
file_b64
)
temp_file
=
Pa
th
(
tempfile
.
mktemp
(
suffix
=
'.pdf'
))
wi
th
tempfile
.
NamedTemporaryFile
(
suffix
=
'.pdf'
,
delete
=
False
)
as
temp
:
temp_file
.
write_bytes
(
file_bytes
)
temp
.
write
(
file_bytes
)
temp_file
=
Path
(
temp
.
name
)
return
{
return
{
'input_path'
:
str
(
temp_file
),
'input_path'
:
str
(
temp_file
),
'backend'
:
options
.
get
(
'backend'
,
'pipeline'
),
'backend'
:
options
.
get
(
'backend'
,
'pipeline'
),
...
...
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