Download web/server/api/views.py from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/server/api/views.py
- Command line
-
hf download hf://spaces/amitesh11/pose/web/server/api/views.py
-
curl -L -o views.py https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/server/api/views.py
264 Bytes
| from rest_framework.decorators import api_view | |
| from rest_framework.response import Response | |
| from datetime import datetime | |
| def api(request): | |
| urls = {"name": "Quoc Bao", "dob": "10/10/2000", "time": datetime.now()} | |
| return Response(urls) | |