Selaa lähdekoodia

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

- Change the default table model from TABLE_MASTER to RAPID_TABLE
myhloli 1 vuosi sitten
vanhempi
commit
e78edb193e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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