瀏覽代碼

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)
tags/v0.6.0
KevinHuSh 1 年之前
父節點
當前提交
a12fcf9156
沒有連結到貢獻者的電子郵件帳戶。
共有 3 個檔案被更改,包括 3 行新增3 行删除
  1. 1
    1
      deepdoc/parser/excel_parser.py
  2. 1
    1
      rag/app/one.py
  3. 1
    1
      rag/utils/minio_conn.py

+ 1
- 1
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:

+ 1
- 1
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.")

+ 1
- 1
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,

Loading…
取消
儲存