Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 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)
|