Spaces:
Running
Running
Asankhaya Sharma
commited on
Commit
·
df66e31
1
Parent(s):
66dbaad
update model names
Browse files- question.py +1 -2
question.py
CHANGED
@@ -9,8 +9,7 @@ from langchain.chat_models import ChatAnthropic
|
|
9 |
from langchain.vectorstores import SupabaseVectorStore
|
10 |
from stats import add_usage
|
11 |
|
12 |
-
|
13 |
-
memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
|
14 |
openai_api_key = st.secrets.openai_api_key
|
15 |
anthropic_api_key = st.secrets.anthropic_api_key
|
16 |
hf_api_key = st.secrets.hf_api_key
|
|
|
9 |
from langchain.vectorstores import SupabaseVectorStore
|
10 |
from stats import add_usage
|
11 |
|
12 |
+
memory = ConversationBufferMemory(memory_key="chat_history", input_key='question', output_key='answer', return_messages=True)
|
|
|
13 |
openai_api_key = st.secrets.openai_api_key
|
14 |
anthropic_api_key = st.secrets.anthropic_api_key
|
15 |
hf_api_key = st.secrets.hf_api_key
|