Spaces:
Sleeping
Sleeping
Download memory.py from ritvik77/Travel_AI_V1: direct link, hf CLI and curl.
- Browser
- Download file 180 Bytes
-
https://huggingface.co/spaces/ritvik77/Travel_AI_V1/resolve/main/memory.py
- Command line
-
hf download hf://spaces/ritvik77/Travel_AI_V1/memory.py
-
curl -L -o memory.py https://huggingface.co/spaces/ritvik77/Travel_AI_V1/resolve/main/memory.py
180 Bytes
| from langchain.memory import ConversationBufferMemory | |
| # Memory for storing conversation history | |
| memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) | |