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