Spaces:
Configuration error
Configuration error
Download utils.py from QueenS5Ella/QGen-AI: direct link, hf CLI and curl.
- Browser
- Download file 171 Bytes
-
https://huggingface.co/spaces/QueenS5Ella/QGen-AI/resolve/main/utils.py
- Command line
-
hf download hf://spaces/QueenS5Ella/QGen-AI/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/QueenS5Ella/QGen-AI/resolve/main/utils.py
171 Bytes
| import re | |
| def clean_text(text): | |
| text = re.sub(r"\r", "", text) | |
| text = re.sub(r"\n+", "\n", text) | |
| text = re.sub(r"\s+", " ", text) | |
| return text.strip() |