Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -47,8 +47,7 @@ def get_vectorstore(text_chunks):
|
|
| 47 |
return vectorstore
|
| 48 |
|
| 49 |
def get_conversation_chain(vectorstore):
|
| 50 |
-
|
| 51 |
-
llm =
|
| 52 |
memory = ConversationBufferMemory(memory_key='chat_history', return_messages=True)
|
| 53 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
| 54 |
llm=llm,
|
|
|
|
| 47 |
return vectorstore
|
| 48 |
|
| 49 |
def get_conversation_chain(vectorstore):
|
| 50 |
+
llm = ChatOpenAI()
|
|
|
|
| 51 |
memory = ConversationBufferMemory(memory_key='chat_history', return_messages=True)
|
| 52 |
conversation_chain = ConversationalRetrievalChain.from_llm(
|
| 53 |
llm=llm,
|