Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,8 @@ llm = ChatOpenAI(model_name="gpt-3.5-turbo", openai_api_key="sk-rHP7ZDWQaD56b9CQ
|
|
| 29 |
|
| 30 |
# Initialize global variable for conversation memory
|
| 31 |
if 'buffer_memory' not in st.session_state:
|
| 32 |
-
st.session_state.buffer_memory= ConversationBufferWindowMemory(k=
|
|
|
|
| 33 |
|
| 34 |
conversation = ConversationChain(
|
| 35 |
llm=llm,
|
|
|
|
| 29 |
|
| 30 |
# Initialize global variable for conversation memory
|
| 31 |
if 'buffer_memory' not in st.session_state:
|
| 32 |
+
st.session_state.buffer_memory= ConversationBufferWindowMemory(k=8)
|
| 33 |
+
#st.session_state.buffer_memory= ConversationBufferWindowMemory(k=3)
|
| 34 |
|
| 35 |
conversation = ConversationChain(
|
| 36 |
llm=llm,
|