From 7f78eb1a4ad6a01e2eaaf7d6675583ff928cad89 Mon Sep 17 00:00:00 2001 From: arkohut <39525455+arkohut@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:54:56 +0800 Subject: [PATCH] chore: update yaml generate config --- memos/plugins/ocr/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memos/plugins/ocr/main.py b/memos/plugins/ocr/main.py index b40be50..86bea9f 100644 --- a/memos/plugins/ocr/main.py +++ b/memos/plugins/ocr/main.py @@ -186,7 +186,7 @@ def init_plugin(config): # Save the updated config to a temporary file with strings wrapped in double quotes temp_config_path = os.path.join(os.path.dirname(__file__), "temp_ppocr.yaml") with open(temp_config_path, 'w') as f: - yaml.safe_dump(ocr_config, f, default_style='"') + yaml.safe_dump(ocr_config, f) ocr = RapidOCR(config_path=temp_config_path) thread_pool = ThreadPoolExecutor(max_workers=concurrency)