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
9e4d6a45
Unverified
Commit
9e4d6a45
authored
Nov 21, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Nov 21, 2024
Browse files
Merge pull request #1052 from icecraft/fix/gradio_project_read
fix: use concrete class instead of abstract class
parents
ead2e670
fa3c453c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
projects/gradio_app/app.py
projects/gradio_app/app.py
+2
-2
No files found.
projects/gradio_app/app.py
View file @
9e4d6a45
...
...
@@ -13,13 +13,13 @@ import pymupdf
from
gradio_pdf
import
PDF
from
loguru
import
logger
from
magic_pdf.data.data_reader_writer
import
DataReader
from
magic_pdf.data.data_reader_writer
import
FileBased
DataReader
from
magic_pdf.libs.hash_utils
import
compute_sha256
from
magic_pdf.tools.common
import
do_parse
,
prepare_env
def
read_fn
(
path
):
disk_rw
=
DataReader
(
os
.
path
.
dirname
(
path
))
disk_rw
=
FileBased
DataReader
(
os
.
path
.
dirname
(
path
))
return
disk_rw
.
read
(
os
.
path
.
basename
(
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