Spaces:
Runtime error
Runtime error
Update InnovationHub/llm/chain.py
Browse files
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 |
-
|
16 |
embeddings = HuggingFaceEmbeddings()
|
17 |
|
18 |
|
19 |
index = FAISS.load_local(folder_path=db_path, embeddings=embeddings)
|
20 |
-
bot = Chatbot(
|
21 |
|
22 |
def init_chain():
|
23 |
template = """
|
|
|
12 |
from EdgeGPT import Chatbot
|
13 |
|
14 |
db_path = 'data/s-class-manual'
|
15 |
+
cookie_path = 'data/cookies.json'
|
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 = """
|