Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,8 +38,8 @@ def get_vectorstore(text_chunks):
|
|
| 38 |
|
| 39 |
|
| 40 |
def get_conversation_chain(vectorstore):
|
| 41 |
-
|
| 42 |
-
llm = HuggingFaceHub(repo_id="NousResearch/Llama-2-7b-hf", model_kwargs={"temperature":0.5, "max_length":512})
|
| 43 |
|
| 44 |
memory = ConversationBufferMemory(
|
| 45 |
memory_key='chat_history', return_messages=True)
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
def get_conversation_chain(vectorstore):
|
| 41 |
+
llm = ChatOpenAI()
|
| 42 |
+
# llm = HuggingFaceHub(repo_id="NousResearch/Llama-2-7b-hf", model_kwargs={"temperature":0.5, "max_length":512})
|
| 43 |
|
| 44 |
memory = ConversationBufferMemory(
|
| 45 |
memory_key='chat_history', return_messages=True)
|