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
b12a866d
Commit
b12a866d
authored
Jun 26, 2025
by
myhloli
Browse files
fix: simplify layout by removing unnecessary column wrappers in UI components
parent
98020159
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
mineru/cli/gradio_app.py
mineru/cli/gradio_app.py
+3
-6
No files found.
mineru/cli/gradio_app.py
View file @
b12a866d
...
...
@@ -182,16 +182,13 @@ def main():
with
gr
.
Row
():
file
=
gr
.
File
(
label
=
'Please upload a PDF or image'
,
file_types
=
[
'.pdf'
,
'.png'
,
'.jpeg'
,
'.jpg'
])
with
gr
.
Row
():
with
gr
.
Column
():
max_pages
=
gr
.
Slider
(
1
,
20
,
10
,
step
=
1
,
label
=
'Max convert pages'
)
max_pages
=
gr
.
Slider
(
1
,
20
,
10
,
step
=
1
,
label
=
'Max convert pages'
)
with
gr
.
Row
():
backend
=
gr
.
Dropdown
([
"pipeline"
,
"vlm-transformers"
,
"vlm-sglang-client"
],
label
=
"Backend"
,
value
=
"pipeline"
)
with
gr
.
Row
(
visible
=
True
)
as
ocr_options
:
with
gr
.
Column
():
language
=
gr
.
Dropdown
(
all_lang
,
label
=
'Language'
,
value
=
'ch'
)
language
=
gr
.
Dropdown
(
all_lang
,
label
=
'Language'
,
value
=
'ch'
)
with
gr
.
Row
(
visible
=
False
)
as
client_options
:
with
gr
.
Column
():
url
=
gr
.
Textbox
(
label
=
'Server URL'
,
value
=
'http://localhost:30000'
,
placeholder
=
'http://localhost:30000'
)
url
=
gr
.
Textbox
(
label
=
'Server URL'
,
value
=
'http://localhost:30000'
,
placeholder
=
'http://localhost:30000'
)
with
gr
.
Row
(
visible
=
True
)
as
pipeline_options
:
is_ocr
=
gr
.
Checkbox
(
label
=
'Force enable OCR'
,
value
=
False
)
formula_enable
=
gr
.
Checkbox
(
label
=
'Enable formula recognition'
,
value
=
True
)
...
...
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