Spaces:
Sleeping
Sleeping
Download tools.py from AkshayHuggingFace/Example-example: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/spaces/AkshayHuggingFace/Example-example/resolve/main/tools.py
- Command line
-
hf download hf://spaces/AkshayHuggingFace/Example-example/tools.py
-
curl -L -o tools.py https://huggingface.co/spaces/AkshayHuggingFace/Example-example/resolve/main/tools.py
481 Bytes
| from db_utils import add_task_db, list_tasks_db, edit_task_db, delete_task_db | |
| def add_task(user_id: int, task_name: str) -> str: | |
| return add_task_db(user_id, task_name) | |
| def list_tasks(user_id: int) -> str: | |
| return list_tasks_db(user_id) | |
| def edit_task(user_id: int, old_name: str, new_name: str) -> str: | |
| return edit_task_db(user_id, old_name, new_name) | |
| def delete_task(user_id: int, task_name: str) -> str: | |
| return delete_task_db(user_id, task_name) | |