Spaces:
Sleeping
Sleeping
adding arguments to predict()
Browse files
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, model, device):
|
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, model, device, intent_label_lst, slot_label_lst):
|
124 |
|
125 |
lines = text
|
126 |
dataset = convert_input_file_to_tensor_dataset(lines, pred_config, args, tokenizer, pad_token_label_id)
|