KevinHuSh commited on
Commit
b837154
·
1 Parent(s): 366c531

fix minio helth bug (#850)

Browse files

### 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 CHANGED
@@ -7,7 +7,7 @@ from rag.nlp import find_codec
7
 
8
 
9
  class RAGFlowExcelParser:
10
- def html(self, fnm,chunk_rows=256):
11
  if isinstance(fnm, str):
12
  wb = load_workbook(fnm)
13
  else:
 
7
 
8
 
9
  class RAGFlowExcelParser:
10
+ def html(self, fnm, chunk_rows=256):
11
  if isinstance(fnm, str):
12
  wb = load_workbook(fnm)
13
  else:
rag/app/one.py CHANGED
@@ -78,7 +78,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
78
  elif re.search(r"\.xlsx?$", filename, re.IGNORECASE):
79
  callback(0.1, "Start to parse.")
80
  excel_parser = ExcelParser()
81
- sections = excel_parser.html(binary , 10000000)
82
 
83
  elif re.search(r"\.txt$", filename, re.IGNORECASE):
84
  callback(0.1, "Start to parse.")
 
78
  elif re.search(r"\.xlsx?$", filename, re.IGNORECASE):
79
  callback(0.1, "Start to parse.")
80
  excel_parser = ExcelParser()
81
+ sections = excel_parser.html(binary, 1000000000)
82
 
83
  elif re.search(r"\.txt$", filename, re.IGNORECASE):
84
  callback(0.1, "Start to parse.")
rag/utils/minio_conn.py CHANGED
@@ -35,7 +35,7 @@ class RAGFlowMinio(object):
35
  self.conn = None
36
 
37
  def health(self):
38
- bucket, fnm, binary = "_t@@@1", "_t@@@1", b"_t@@@1"
39
  if not self.conn.bucket_exists(bucket):
40
  self.conn.make_bucket(bucket)
41
  r = self.conn.put_object(bucket, fnm,
 
35
  self.conn = None
36
 
37
  def health(self):
38
+ bucket, fnm, binary = "txtxtxtxt1", "txtxtxtxt1", b"_t@@@1"
39
  if not self.conn.bucket_exists(bucket):
40
  self.conn.make_bucket(bucket)
41
  r = self.conn.put_object(bucket, fnm,