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
8eb699ec
Unverified
Commit
8eb699ec
authored
Nov 08, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Nov 08, 2024
Browse files
Merge pull request #911 from myhloli/dev
fix(gradio-app): add missing file type in upload
parents
74fba476
dd8da7bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
projects/gradio_app/app.py
projects/gradio_app/app.py
+1
-1
No files found.
projects/gradio_app/app.py
View file @
8eb699ec
...
...
@@ -191,7 +191,7 @@ if __name__ == "__main__":
gr
.
HTML
(
header
)
with
gr
.
Row
():
with
gr
.
Column
(
variant
=
'panel'
,
scale
=
5
):
file
=
gr
.
File
(
label
=
"Please upload a PDF or image"
,
file_types
=
[
".pdf"
,
".png"
,
".jpeg"
,
"jpg"
])
file
=
gr
.
File
(
label
=
"Please upload a PDF or image"
,
file_types
=
[
".pdf"
,
".png"
,
".jpeg"
,
"
.
jpg"
])
max_pages
=
gr
.
Slider
(
1
,
10
,
5
,
step
=
1
,
label
=
"Max convert pages"
)
with
gr
.
Row
():
layout_mode
=
gr
.
Dropdown
([
"layoutlmv3"
,
"doclayout_yolo"
],
label
=
"Layout model"
,
value
=
"layoutlmv3"
)
...
...
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