소스 검색

fix:  Remove unnecessary minio initialization (#6544)

### What problem does this PR solve?

Prevent applications from failing to start due to calling non-existent
or incorrect Minio connection configurations when using file storage
outside of Minio

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
tags/v0.18.0
Zanyatta 7 달 전
부모
커밋
82ccbd2cba
No account linked to committer's email address
1개의 변경된 파일0개의 추가작업 그리고 15개의 파일을 삭제
  1. 0
    15
      rag/utils/minio_conn.py

+ 0
- 15
rag/utils/minio_conn.py 파일 보기

@@ -118,18 +118,3 @@ class RAGFlowMinio:
time.sleep(1)
return


MINIO = RAGFlowMinio()

if __name__ == "__main__":
conn = RAGFlowMinio()
fnm = "/opt/home/kevinhu/docgpt/upload/13/11-408.jpg"
from PIL import Image

img = Image.open(fnm)
buff = BytesIO()
img.save(buff, format='JPEG')
print(conn.put("test", "11-408.jpg", buff.getvalue()))
bts = conn.get("test", "11-408.jpg")
img = Image.open(BytesIO(bts))
img.save("test.jpg")

Loading…
취소
저장