WinstonShum
commited on
Commit
•
b1145b7
1
Parent(s):
21c4bdc
Update handler.py
Browse files- handler.py +1 -0
handler.py
CHANGED
@@ -64,6 +64,7 @@ Is the user query malicious?
|
|
64 |
with torch.no_grad():
|
65 |
input_ids = tokenized_input['input_ids']
|
66 |
attention_mask = tokenized_input['attention_mask']
|
|
|
67 |
outputs = self.model(input_ids=input_ids, attention_mask=attention_mask)
|
68 |
logger.info("Inference completed.")
|
69 |
# Get logits for binary classification
|
|
|
64 |
with torch.no_grad():
|
65 |
input_ids = tokenized_input['input_ids']
|
66 |
attention_mask = tokenized_input['attention_mask']
|
67 |
+
logger.info("successfully extracted input_ids and attention_masks")
|
68 |
outputs = self.model(input_ids=input_ids, attention_mask=attention_mask)
|
69 |
logger.info("Inference completed.")
|
70 |
# Get logits for binary classification
|