chasetank commited on
Commit
7307f03
1 Parent(s): 5e9f972

Update InnovationHub/llm/chain.py

Browse files
Files changed (1) hide show
  1. InnovationHub/llm/chain.py +2 -2
InnovationHub/llm/chain.py CHANGED
@@ -12,12 +12,12 @@ from langchain.chains.conversation.memory import ConversationalBufferWindowMemor
12
  from EdgeGPT import Chatbot
13
 
14
  db_path = 'data/s-class-manual'
15
- cookie_path = os.environ['COOKIES']
16
  embeddings = HuggingFaceEmbeddings()
17
 
18
 
19
  index = FAISS.load_local(folder_path=db_path, embeddings=embeddings)
20
- bot = Chatbot(cookiePath=cookie_path)
21
 
22
  def init_chain():
23
  template = """
 
12
  from EdgeGPT import Chatbot
13
 
14
  db_path = 'data/s-class-manual'
15
+ cookies = os.environ['COOKIES']
16
  embeddings = HuggingFaceEmbeddings()
17
 
18
 
19
  index = FAISS.load_local(folder_path=db_path, embeddings=embeddings)
20
+ bot = Chatbot(cookies=cookies)
21
 
22
  def init_chain():
23
  template = """