Spaces:
Sleeping
Sleeping
Download utils/preprocess.py from Pachinee/brd-audit-streamlit-is: direct link, hf CLI and curl.
- Browser
- Download file 126 Bytes
-
https://huggingface.co/spaces/Pachinee/brd-audit-streamlit-is/resolve/main/utils/preprocess.py
- Command line
-
hf download hf://spaces/Pachinee/brd-audit-streamlit-is/utils/preprocess.py
-
curl -L -o preprocess.py https://huggingface.co/spaces/Pachinee/brd-audit-streamlit-is/resolve/main/utils/preprocess.py
126 Bytes
| import re | |
| def preprocess_text(text: str) -> str: | |
| text = text.strip() | |
| text = re.sub(r"\s+", " ", text) | |
| return text |