Download app/utils/task_utils.py from gitdeem/dt: direct link, hf CLI and curl.
- Browser
- Download file 183 Bytes
-
https://huggingface.co/spaces/gitdeem/dt/resolve/main/app/utils/task_utils.py
- Command line
-
hf download hf://spaces/gitdeem/dt/app/utils/task_utils.py
-
curl -L -o task_utils.py https://huggingface.co/spaces/gitdeem/dt/resolve/main/app/utils/task_utils.py
183 Bytes
| # utils/task_utils.py | |
| import datetime | |
| def generate_task_no(): | |
| """生成任务编号[^3]""" | |
| now = datetime.datetime.now() | |
| return f"T{now.strftime('%Y%m%d%H%M%S')}" | |