refactor(magic_pdf): implement model singleton pattern for custom models
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.
Showing
Please register or sign in to comment