Download app/validators.py from thuvien/daithanh: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/thuvien/daithanh/resolve/main/app/validators.py
- Command line
-
hf download hf://spaces/thuvien/daithanh/app/validators.py
-
curl -L -o validators.py https://huggingface.co/spaces/thuvien/daithanh/resolve/main/app/validators.py
254 Bytes
| def validate_printer(brand: str, model: str): | |
| errors = {} | |
| if not brand: | |
| errors["brand"] = "Hãng máy không được để trống." | |
| if not model: | |
| errors["model"] = "Model không được để trống." | |
| return errors |