Spaces:
Sleeping
Sleeping
Fix type of NN prediction
Browse files
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)
|