chore: format

This commit is contained in:
Timothy Jaeryang Baek
2025-09-09 18:19:31 +04:00
parent cbb4684b16
commit 485392fe63
3 changed files with 17 additions and 5 deletions
+5 -2
View File
@@ -178,7 +178,11 @@ class DoclingLoader:
params["force_ocr"] = self.params.get("force_ocr")
if self.params.get("do_ocr") and self.params.get("ocr_engine") and self.params.get("ocr_lang"):
if (
self.params.get("do_ocr")
and self.params.get("ocr_engine")
and self.params.get("ocr_lang")
):
params["ocr_engine"] = self.params.get("ocr_engine")
params["ocr_lang"] = [
lang.strip()
@@ -195,7 +199,6 @@ class DoclingLoader:
if self.params.get("pipeline"):
params["pipeline"] = self.params.get("pipeline")
endpoint = f"{self.url}/v1/convert/file"
r = requests.post(endpoint, files=files, data=params)