Download utils.py from gtani/DEvalbot: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/spaces/gtani/DEvalbot/resolve/main/utils.py
- Command line
-
hf download hf://spaces/gtani/DEvalbot/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/gtani/DEvalbot/resolve/main/utils.py
305 Bytes
| import csv | |
| def load_users(path): | |
| """ | |
| Reads a CSV with header 'users,passwords' | |
| and returns a list of (user, password) tuples. | |
| """ | |
| with open(path, newline="", encoding="utf-8") as f: | |
| reader = csv.DictReader(f) | |
| return [(row["users"], row["passwords"]) for row in reader] |