tbitai commited on
Commit
c078837
·
verified ·
1 Parent(s): 908a1af

Fix type of NN prediction

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def predict_bayes(text, intr_threshold, unbiased=False):
64
  return combine(interesting_probs)
65
 
66
  def predict_nn(text):
67
- return nn_model(np.array([text]))[0][0].numpy()
68
 
69
  def predict_llm(text):
70
  embedding = st_model.encode(text)
 
64
  return combine(interesting_probs)
65
 
66
  def predict_nn(text):
67
+ return float(nn_model(np.array([text]))[0][0].numpy())
68
 
69
  def predict_llm(text):
70
  embedding = st_model.encode(text)