Spaces:
Build error
Build error
Update app.py
Browse files
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 |
|