49df25d
1
2
3
4
5
6
7
import re def clean_text(text): """ Removes special AI tags from the text. """ return re.sub(r'</?AI_Start>|</?AI_End>', '', text) if re.search(r'</?AI_Start>|</?AI_End>', text) else text