Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def get_vectorestore(text_chunks):
|
|
| 32 |
vectorestore = FAISS.from_texts(texts=text_chunks, embedding= embeddings)
|
| 33 |
return vectorestore
|
| 34 |
|
| 35 |
-
|
| 36 |
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":0.5, "max_length":512})
|
| 37 |
memory = ConversationalBufferMemory(memory_key="chat_history", return_message= True)
|
| 38 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
|
|
|
| 32 |
vectorestore = FAISS.from_texts(texts=text_chunks, embedding= embeddings)
|
| 33 |
return vectorestore
|
| 34 |
|
| 35 |
+
def get_conversation_chain(vectorstore):
|
| 36 |
llm = HuggingFaceHub(repo_id="google/flan-t5-xxl", model_kwargs={"temperature":0.5, "max_length":512})
|
| 37 |
memory = ConversationalBufferMemory(memory_key="chat_history", return_message= True)
|
| 38 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|