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
fa3c453c
Commit
fa3c453c
authored
Nov 21, 2024
by
icecraft
Browse files
fix: use concrete class instead of abstract class
parent
ead2e670
Changes
1
Hide 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 @
fa3c453c
...
...
@@ -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