Skip to content

Commit a7515be

Browse files
Update phishing_email_detection_gpt2.py
...
1 parent 7a38e20 commit a7515be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phishing_email_detection_gpt2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def call(self, inputs):
218218
# # Convert tensor to a list of strings
219219
# inputs = inputs.numpy().astype("U").tolist()
220220

221-
inputs = [x.decode('utf-8') for x in inputs.numpy()]
221+
inputs = [x.decode('utf-8') for x in inputs]
222222
tokenized = self.tokenizer(inputs,
223223
max_length=self.max_seq_length,
224224
padding='max_length',

0 commit comments

Comments
 (0)