Download app/utils.py from ShadowTEM/Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 303 Bytes
-
https://huggingface.co/spaces/ShadowTEM/Chatbot/resolve/main/app/utils.py
- Command line
-
hf download hf://spaces/ShadowTEM/Chatbot/app/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/ShadowTEM/Chatbot/resolve/main/app/utils.py
303 Bytes
| import re | |
| def remove_stars(text): | |
| """ | |
| Removes all '*' characters (including sequences of them) from the input string. | |
| Parameters: | |
| text (str): The input string. | |
| Returns: | |
| str: The string without any '*' characters. | |
| """ | |
| return re.sub(r'\*+', '', text) |