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

Fix type of LLM prediction

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def predict_nn(text):
68
 
69
  def predict_llm(text):
70
  embedding = st_model.encode(text)
71
- return llm_model(np.array([embedding]))[0][0].numpy()
72
 
73
  MODELS = [
74
  BAYES := "Bayes Enron1 spam",
 
68
 
69
  def predict_llm(text):
70
  embedding = st_model.encode(text)
71
+ return float(llm_model(np.array([embedding]))[0][0].numpy())
72
 
73
  MODELS = [
74
  BAYES := "Bayes Enron1 spam",