Spaces:
Running
Running
Download routers/memory.py from DeepImagix/self-trained2: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/spaces/DeepImagix/self-trained2/resolve/main/routers/memory.py
- Command line
-
hf download hf://spaces/DeepImagix/self-trained2/routers/memory.py
-
curl -L -o memory.py https://huggingface.co/spaces/DeepImagix/self-trained2/resolve/main/routers/memory.py
345 Bytes
| """ | |
| Memory Router - Thin layer | |
| """ | |
| from fastapi import APIRouter | |
| router = APIRouter() | |
| async def set_memory_consent(user_id: str, consent: bool): | |
| return {"status": "success", "consent": consent} | |
| async def get_memory_facts(uid: str): | |
| return {"user_id": uid, "facts": {}, "count": 0} |