a9ba395a by 周伟奇

fix bug

1 parent 30a3b7b5
......@@ -1517,6 +1517,7 @@ class Command(BaseCommand, LoggerMixin):
elif classify_1_str in consts.FSM_CONTRACT_TYPE_MAP:
file_type = consts.FSM_CONTRACT_TYPE_MAP.get(classify_1_str)
ocr_result = fsm_predict(pdf_handler.pdf_info, file_type)
page_res = {}
for page_num, page_info in ocr_result.items():
if isinstance(page_num, str) and page_num.startswith('page_'):
page_res[page_num] = {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!