浏览代码

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)