Skip to content

Commit

Permalink
修复import错误
Browse files Browse the repository at this point in the history
  • Loading branch information
myhloli committed Mar 29, 2024
1 parent 016cde3 commit d35c492
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions magic_pdf/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
from loguru import logger

from magic_pdf.pdf_parse_for_train import parse_pdf_for_train
from magic_pdf.spark import exception_handler, get_data_source
from magic_pdf.spark.base import exception_handler, get_data_source
from magic_pdf.train_utils.convert_to_train_format import convert_to_train_format
from magic_pdf.spark import get_s3_config, get_s3_client
from magic_pdf.spark.s3 import get_s3_config, get_s3_client



Expand Down
2 changes: 1 addition & 1 deletion magic_pdf/pipeline_txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from magic_pdf.dict2md.mkcontent import mk_mm_markdown, mk_universal_format
from magic_pdf.libs.commons import join_path
from magic_pdf.libs.json_compressor import JsonCompressor
from magic_pdf.spark import exception_handler, get_data_source
from magic_pdf.spark.base import exception_handler, get_data_source


def txt_pdf_to_standard_format(jso: dict, debug_mode=False) -> dict:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_commons.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
from magic_pdf.libs.commons import fitz

from magic_pdf.spark import get_s3_config, get_s3_client
from magic_pdf.spark.s3 import get_s3_config, get_s3_client
from magic_pdf.libs.commons import join_path, json_dump_path, read_file, parse_bucket_key
from loguru import logger

Expand Down

0 comments on commit d35c492

Please sign in to comment.