taprosoft
commited on
Commit
·
cb2ed5c
1
Parent(s):
e0879fe
fix: disable zerox
Browse files- app.py +3 -4
- backends/__init__.py +3 -2
app.py
CHANGED
@@ -15,7 +15,7 @@ import gradio as gr
|
|
15 |
import pymupdf4llm
|
16 |
from gradio_pdf import PDF
|
17 |
|
18 |
-
from backends import (
|
19 |
convert_docling,
|
20 |
convert_gemini,
|
21 |
convert_gmft,
|
@@ -23,7 +23,6 @@ from backends import (
|
|
23 |
convert_marker,
|
24 |
convert_mineru,
|
25 |
convert_unstructured,
|
26 |
-
convert_zerox,
|
27 |
)
|
28 |
from backends.settings import ENABLE_DEBUG_MODE
|
29 |
from utils import remove_images_from_markdown, trim_pages
|
@@ -66,8 +65,8 @@ def convert_document(path, method, start_page=0, enabled=True):
|
|
66 |
text, debug_image_paths = convert_mineru(path, file_name)
|
67 |
elif method == "Gemini (API)":
|
68 |
text, debug_image_paths = convert_gemini(path, file_name)
|
69 |
-
elif method == "Zerox":
|
70 |
-
|
71 |
elif method == "Img2Table":
|
72 |
text, debug_image_paths = convert_img2table(path, file_name)
|
73 |
elif method == "GMFT":
|
|
|
15 |
import pymupdf4llm
|
16 |
from gradio_pdf import PDF
|
17 |
|
18 |
+
from backends import ( # convert_zerox,
|
19 |
convert_docling,
|
20 |
convert_gemini,
|
21 |
convert_gmft,
|
|
|
23 |
convert_marker,
|
24 |
convert_mineru,
|
25 |
convert_unstructured,
|
|
|
26 |
)
|
27 |
from backends.settings import ENABLE_DEBUG_MODE
|
28 |
from utils import remove_images_from_markdown, trim_pages
|
|
|
65 |
text, debug_image_paths = convert_mineru(path, file_name)
|
66 |
elif method == "Gemini (API)":
|
67 |
text, debug_image_paths = convert_gemini(path, file_name)
|
68 |
+
# elif method == "Zerox":
|
69 |
+
# text, debug_image_paths = convert_zerox(path, file_name)
|
70 |
elif method == "Img2Table":
|
71 |
text, debug_image_paths = convert_img2table(path, file_name)
|
72 |
elif method == "GMFT":
|
backends/__init__.py
CHANGED
@@ -5,7 +5,8 @@ from .img2table import convert_img2table
|
|
5 |
from .marker import convert_marker
|
6 |
from .mineru import convert_mineru
|
7 |
from .unstructured import convert_unstructured
|
8 |
-
|
|
|
9 |
|
10 |
__all__ = [
|
11 |
"convert_docling",
|
@@ -13,7 +14,7 @@ __all__ = [
|
|
13 |
"convert_mineru",
|
14 |
"convert_unstructured",
|
15 |
"convert_gemini",
|
16 |
-
"convert_zerox",
|
17 |
"convert_img2table",
|
18 |
"convert_gmft",
|
19 |
]
|
|
|
5 |
from .marker import convert_marker
|
6 |
from .mineru import convert_mineru
|
7 |
from .unstructured import convert_unstructured
|
8 |
+
|
9 |
+
# from .zerox import convert_zerox
|
10 |
|
11 |
__all__ = [
|
12 |
"convert_docling",
|
|
|
14 |
"convert_mineru",
|
15 |
"convert_unstructured",
|
16 |
"convert_gemini",
|
17 |
+
# "convert_zerox",
|
18 |
"convert_img2table",
|
19 |
"convert_gmft",
|
20 |
]
|