D3V1L1810 commited on
Commit
09aaef7
·
verified ·
1 Parent(s): e8e7821

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -56,6 +56,7 @@ def predict_text(params):
56
  pred = bert_model.predict([input_ids, token_type_ids, attention_mask])
57
  logits = pred.logits
58
  pred_label = tf.argmax(logits, axis=1).numpy()[0]
 
59
  if not pred_label:
60
  predict_label = 7
61
 
 
56
  pred = bert_model.predict([input_ids, token_type_ids, attention_mask])
57
  logits = pred.logits
58
  pred_label = tf.argmax(logits, axis=1).numpy()[0]
59
+ print(f"{logits}\t{pred_label}")
60
  if not pred_label:
61
  predict_label = 7
62