Spaces:
Running
Running
Fix type of LLM prediction
Browse files
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",
|