Update utils.py

pull/134/head
Who? 2025-04-21 15:49:06 +07:00 committed by GitHub
parent bdca57fbf5
commit 01c90f4c6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1455,7 +1455,7 @@ def remove_emoji(text: str) -> str:
allchars = [str for str in text]
emoji_list = [c for c in allchars if c in emoji.EMOJI_DATA]
clean_text = ' '.join([str for str in text.split() if not any(i in str for i in emoji_list)])
clean_text = ''.join([str for str in text if not any(i in str for i in emoji_list)])
return clean_text
def get_kwargs() -> typing.Dict[str, typing.Any]: