VideoStory/clean.py

5 lines
162 B
Python
Raw Normal View History

2025-04-20 11:29:26 +02:00
import re
def clean(input_text):
output_text = re.sub(r'keywords:', ', ', input_text)
output_text = re.sub(r'\n', ', ', input_text)
return output_text