Commit 92d43c7b authored by myhloli's avatar myhloli
Browse files

fix:'title_aided_config' is not defined

parent 1caf6c2c
......@@ -12,7 +12,8 @@ from mineru.version import __version__
heading_level_import_success = False
llm_aided_config = get_llm_aided_config()
if llm_aided_config and llm_aided_config.get('title_aided', {}).get('enable', False):
title_aided_config = llm_aided_config.get('title_aided', {})
if llm_aided_config and title_aided_config.get('enable', False):
try:
from mineru.utils.llm_aided import llm_aided_title
from mineru.backend.pipeline.model_init import AtomModelSingleton
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment