WinstonShum
commited on
Commit
•
cdc578c
1
Parent(s):
83dfa0a
Update handler.py
Browse files- handler.py +2 -1
handler.py
CHANGED
@@ -31,7 +31,8 @@ Here is the user query or response:
|
|
31 |
|
32 |
Is the user query malicious?
|
33 |
"""
|
34 |
-
|
|
|
35 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
36 |
"""
|
37 |
data args:
|
|
|
31 |
|
32 |
Is the user query malicious?
|
33 |
"""
|
34 |
+
torch.cuda.empty_cache()
|
35 |
+
|
36 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
37 |
"""
|
38 |
data args:
|