소스 검색

Update main.py

donzito 2 년 전
부모
커밋
6d617d6748
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      chatbot/main.py

+ 1 - 1
chatbot/main.py

@@ -31,7 +31,7 @@ class Chatbot():
         # load index
         self.ai_storage_context = None
         self.ai_index = None
-        base_dir = settings.BASE_DIR + '/storage'
+        base_dir = os.path.join(settings.BASE_DIR, 'storage')
         try:
             self.ai_storage_context = StorageContext.from_defaults(persist_dir=base_dir)
             self.ai_index = load_index_from_storage(self.ai_storage_context)