Skip to content

Commit fdc4812

Browse files
Update phishing_email_detection_gpt2.py
Remove incompatible funstionality...
1 parent ebb22a7 commit fdc4812

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

phishing_email_detection_gpt2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ def call(self, inputs):
214214
- The tokenized input IDs.
215215
"""
216216
# Check if inputs is a tensor
217-
if isinstance(inputs, tf.Tensor):
218-
# Convert tensor to a list of strings
219-
inputs = inputs.numpy().astype("U").tolist()
217+
# if isinstance(inputs, tf.Tensor):
218+
# # Convert tensor to a list of strings
219+
# inputs = inputs.numpy().astype("U").tolist()
220220
# Tokenize each input string separately
221221
tokenized = self.tokenizer(inputs,
222222
max_length=self.max_seq_length,

0 commit comments

Comments
 (0)