• myhloli's avatar
    refactor(magic_pdf): implement model singleton pattern for custom models · 054abe33
    myhloli authored
    Introduce a Singleton pattern to manage custom models in the magic_pdf module.
    This change improves the efficiency by ensuring that a single instance of the
    custom model is created and reused, thereby reducing the overhead of multiple
    instantiate calls for the same model configuration.
    054abe33
doc_analyze_by_custom_model.py 3.8 KB