From bff64f4547d6df03144d8c9523be2d44907aa7b4 Mon Sep 17 00:00:00 2001 From: Hyunwoong Ko Date: Sat, 27 Apr 2024 23:53:11 +0900 Subject: [PATCH] update README.md --- README.md | 2 +- kss/_modules/safety/check_safety.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2db7d9..60649c3 100644 --- a/README.md +++ b/README.md @@ -1253,7 +1253,7 @@ References:
38. is_unsafe -Check if the text is unsafe or not. +This checks if the text is unsafe or not. Args: - text (`Union[str, List[str], Tuple[str]]`): single text or list of texts diff --git a/kss/_modules/safety/check_safety.py b/kss/_modules/safety/check_safety.py index 56d5f5c..6d1d980 100644 --- a/kss/_modules/safety/check_safety.py +++ b/kss/_modules/safety/check_safety.py @@ -12,7 +12,7 @@ def is_unsafe( num_workers: Union[int, str] = "auto", ) -> Union[bool, List[bool], List[bool], List[List[str]]]: """ - Check if the text is unsafe or not. + This checks if the text is unsafe or not. Args: text (Union[str, List[str], Tuple[str]]): single text or list of texts