14 lines
412 B
Python
14 lines
412 B
Python
"""Start the checked-out MinerU 2.7.6 application with its normal CLI options."""
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
if __name__ == '__main__':
|
|
from mineru.version import __version__
|
|
if __version__ != '2.7.6':
|
|
raise RuntimeError('This launcher requires MinerU 2.7.6')
|
|
from mineru.cli.fast_api import main
|
|
main()
|