Skip to content

Commit

Permalink
fix minio helth bug (infiniflow#850)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

infiniflow#643 

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored May 20, 2024
1 parent 7a955a4 commit 4150450
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deepdoc/parser/excel_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


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:
Expand Down
2 changes: 1 addition & 1 deletion rag/app/one.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down
2 changes: 1 addition & 1 deletion rag/utils/minio_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __close__(self):
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,
Expand Down

0 comments on commit 4150450

Please sign in to comment.