Spaces:
Sleeping
Sleeping
adding argument to lm.predict()
Browse files
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 = []
|