浏览代码

refactor(table): update default table model to Rapid Table

- Change the default table model from TABLE_MASTER to RAPID_TABLE
myhloli 1 年之前
父节点
当前提交
e78edb193e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      magic_pdf/libs/config_reader.py

+ 1 - 1
magic_pdf/libs/config_reader.py

@@ -92,7 +92,7 @@ def get_table_recog_config():
     table_config = config.get('table-config')
     if table_config is None:
         logger.warning(f"'table-config' not found in {CONFIG_FILE_NAME}, use 'False' as default")
-        return json.loads(f'{{"model": "{MODEL_NAME.TABLE_MASTER}","enable": false, "max_time": 400}}')
+        return json.loads(f'{{"model": "{MODEL_NAME.RAPID_TABLE}","enable": false, "max_time": 400}}')
     else:
         return table_config