samim2024 commited on
Commit
27c789c
·
verified ·
1 Parent(s): 75317d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def getresponse(userInput, api_key):
45
  st.session_state['conversation'] = ConversationChain(
46
  llm=llm,
47
  verbose=True,
48
- memory=ConversationSummaryMemory(llm=llm)
49
  )
50
 
51
  response=st.session_state['conversation'].predict(input=userInput)
 
45
  st.session_state['conversation'] = ConversationChain(
46
  llm=llm,
47
  verbose=True,
48
+ memory=ConversationBufferWindowMemory(llm=llm)
49
  )
50
 
51
  response=st.session_state['conversation'].predict(input=userInput)