Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix minio health bug #850

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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