Download helper.py from NGOC1712/svm_model: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/NGOC1712/svm_model/resolve/main/helper.py
- Command line
-
hf download hf://spaces/NGOC1712/svm_model/helper.py
-
curl -L -o helper.py https://huggingface.co/spaces/NGOC1712/svm_model/resolve/main/helper.py
248 Bytes
| from typing import Optional | |
| # ========================= | |
| # Helpers | |
| # ========================= | |
| def _combine(title: Optional[str], text: Optional[str]) -> str: | |
| title = title or "" | |
| text = text or "" | |
| return f"{title} {text}".strip().lower() |