From a12fcf9156adde5e2fb8e4dfb842bd9b85da3a10 Mon Sep 17 00:00:00 2001 From: KevinHuSh Date: Mon, 20 May 2024 19:35:30 +0800 Subject: [PATCH] fix minio helth bug (#850) ### What problem does this PR solve? #643 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- deepdoc/parser/excel_parser.py | 2 +- rag/app/one.py | 2 +- rag/utils/minio_conn.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deepdoc/parser/excel_parser.py b/deepdoc/parser/excel_parser.py index b7d9539e4..1016b115c 100644 --- a/deepdoc/parser/excel_parser.py +++ b/deepdoc/parser/excel_parser.py @@ -7,7 +7,7 @@ from rag.nlp import find_codec class RAGFlowExcelParser: - def html(self, fnm,chunk_rows=256): + def html(self, fnm, chunk_rows=256): if isinstance(fnm, str): wb = load_workbook(fnm) else: diff --git a/rag/app/one.py b/rag/app/one.py index ac67a64b2..80339513b 100644 --- a/rag/app/one.py +++ b/rag/app/one.py @@ -78,7 +78,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000, elif re.search(r"\.xlsx?$", filename, re.IGNORECASE): callback(0.1, "Start to parse.") excel_parser = ExcelParser() - sections = excel_parser.html(binary , 10000000) + sections = excel_parser.html(binary, 1000000000) elif re.search(r"\.txt$", filename, re.IGNORECASE): callback(0.1, "Start to parse.") diff --git a/rag/utils/minio_conn.py b/rag/utils/minio_conn.py index f6aff1bae..5841dabc3 100644 --- a/rag/utils/minio_conn.py +++ b/rag/utils/minio_conn.py @@ -35,7 +35,7 @@ class RAGFlowMinio(object): self.conn = None def health(self): - bucket, fnm, binary = "_t@@@1", "_t@@@1", b"_t@@@1" + bucket, fnm, binary = "txtxtxtxt1", "txtxtxtxt1", b"_t@@@1" if not self.conn.bucket_exists(bucket): self.conn.make_bucket(bucket) r = self.conn.put_object(bucket, fnm,