msg
Browse files- services/sms_service.py +2 -2
services/sms_service.py
CHANGED
|
@@ -22,7 +22,7 @@ def load_model():
|
|
| 22 |
except Exception as e:
|
| 23 |
raise HTTPException(status_code=500, detail=f"Error loading model: {str(e)}")
|
| 24 |
|
| 25 |
-
async def
|
| 26 |
try:
|
| 27 |
classifier, vectorizer = load_model()
|
| 28 |
# Vectorize the input message
|
|
@@ -48,7 +48,7 @@ async def compute_cosine_similarity(text1: str, text2: str):
|
|
| 48 |
except Exception as e:
|
| 49 |
raise HTTPException(status_code=500, detail=f"Error computing similarity: {str(e)}")
|
| 50 |
|
| 51 |
-
async def
|
| 52 |
try:
|
| 53 |
classifier, vectorizer = load_model()
|
| 54 |
|
|
|
|
| 22 |
except Exception as e:
|
| 23 |
raise HTTPException(status_code=500, detail=f"Error loading model: {str(e)}")
|
| 24 |
|
| 25 |
+
async def label_prediction(message: str):
|
| 26 |
try:
|
| 27 |
classifier, vectorizer = load_model()
|
| 28 |
# Vectorize the input message
|
|
|
|
| 48 |
except Exception as e:
|
| 49 |
raise HTTPException(status_code=500, detail=f"Error computing similarity: {str(e)}")
|
| 50 |
|
| 51 |
+
async def embeddings(message: str):
|
| 52 |
try:
|
| 53 |
classifier, vectorizer = load_model()
|
| 54 |
|