Spaces:
Sleeping
Sleeping
Update tools/polite_guard.py
Browse files- tools/polite_guard.py +1 -1
tools/polite_guard.py
CHANGED
@@ -15,7 +15,7 @@ class PoliteGuardTool(Tool):
|
|
15 |
|
16 |
def forward(self, input_text: Any) -> Any:
|
17 |
self.label, self.score = self.ask_polite_guard(input_text)
|
18 |
-
|
19 |
|
20 |
def __init__(self, *args, **kwargs):
|
21 |
self.is_initialized = False
|
|
|
15 |
|
16 |
def forward(self, input_text: Any) -> Any:
|
17 |
self.label, self.score = self.ask_polite_guard(input_text)
|
18 |
+
return self.label
|
19 |
|
20 |
def __init__(self, *args, **kwargs):
|
21 |
self.is_initialized = False
|