DD0101 commited on
Commit
2616450
1 Parent(s): 31acd35

adding argument to predict()

Browse files
Files changed (1) hide show
  1. Customized_IDSF/load_model.py +1 -1
Customized_IDSF/load_model.py CHANGED
@@ -120,7 +120,7 @@ def convert_input_file_to_tensor_dataset(
120
 
121
  return dataset
122
 
123
- def predict(text, pred_config, args, tokenizer, pad_token_label_id):
124
 
125
  lines = text
126
  dataset = convert_input_file_to_tensor_dataset(lines, pred_config, args, tokenizer, pad_token_label_id)
 
120
 
121
  return dataset
122
 
123
+ def predict(text, pred_config, args, tokenizer, pad_token_label_id, device):
124
 
125
  lines = text
126
  dataset = convert_input_file_to_tensor_dataset(lines, pred_config, args, tokenizer, pad_token_label_id)