DD0101 commited on
Commit
5a687e2
1 Parent(s): 2616450

adding argument to lm.predict()

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ def ner(text):
118
 
119
 
120
  #################### IDSF #######################
121
- prediction = lm.predict([fluency_sentence.strip().split()], pred_config, args, tokenizer, pad_token_label_id)
122
  words, slot_preds, intent_pred = prediction[0][0], prediction[1][0], prediction[2][0]
123
 
124
  slot_tokens = []
 
118
 
119
 
120
  #################### IDSF #######################
121
+ prediction = lm.predict([fluency_sentence.strip().split()], pred_config, args, tokenizer, pad_token_label_id, device)
122
  words, slot_preds, intent_pred = prediction[0][0], prediction[1][0], prediction[2][0]
123
 
124
  slot_tokens = []