mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-03-27 11:08:32 +07:00
3
.github/workflows/gpu-ci.yml
vendored
3
.github/workflows/gpu-ci.yml
vendored
@@ -31,9 +31,6 @@ jobs:
|
||||
|
||||
- name: check-requirements
|
||||
run: |
|
||||
echo $PATH
|
||||
conda init
|
||||
conda activate QA
|
||||
source ~/.bashrc
|
||||
pip install magic-pdf[full-cpu]==0.6.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
pip install https://raw.githubusercontent.com/myhloli/wheels/main/assets/whl/detectron2/detectron2-0.6-cp310-cp310-linux_x86_64.whl
|
||||
|
||||
BIN
magic_pdf/libs/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
magic_pdf/libs/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
BIN
magic_pdf/libs/__pycache__/version.cpython-312.pyc
Normal file
BIN
magic_pdf/libs/__pycache__/version.cpython-312.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@ import json
|
||||
from magic_pdf.pipe.UNIPipe import UNIPipe
|
||||
from magic_pdf.rw.DiskReaderWriter import DiskReaderWriter
|
||||
from lib import calculate_score
|
||||
|
||||
import shutil
|
||||
pdf_res_path = conf.conf["pdf_res_path"]
|
||||
code_path = conf.conf["code_path"]
|
||||
pdf_dev_path = conf.conf["pdf_dev_path"]
|
||||
@@ -58,8 +58,8 @@ def pdf_to_markdown():
|
||||
if not os.path.exists(dir_path):
|
||||
os.makedirs(dir_path, exist_ok=True)
|
||||
res_path = os.path.join(dir_path, f"{demo_name}.md")
|
||||
#src_path = os.path.join(pdf_res_path, "pdf", f"{demo_name}.pdf")
|
||||
#shutil.copy(src_path, res_path)
|
||||
src_path = os.path.join(pdf_res_path, demo_name, "auto", f"{demo_name}.md")
|
||||
shutil.copy(src_path, res_path)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user