Spaces:
Sleeping
Sleeping
Download session.py from Shakeel401/AskRoss-Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 201 Bytes
-
https://huggingface.co/spaces/Shakeel401/AskRoss-Chatbot/resolve/main/session.py
- Command line
-
hf download hf://spaces/Shakeel401/AskRoss-Chatbot/session.py
-
curl -L -o session.py https://huggingface.co/spaces/Shakeel401/AskRoss-Chatbot/resolve/main/session.py
201 Bytes
| from agents import SQLiteSession | |
| import os | |
| def get_session(thread_id: str): | |
| db_path = os.path.join(os.path.dirname(__file__), "/tmp/conversations.db") | |
| return SQLiteSession(thread_id, db_path) | |