Spaces:
Sleeping
Sleeping
Update chatbot_utils.py
Browse files- chatbot_utils.py +1 -1
chatbot_utils.py
CHANGED
|
@@ -6,7 +6,7 @@ import numpy as np
|
|
| 6 |
from sklearn.metrics.pairwise import cosine_similarity
|
| 7 |
|
| 8 |
class AmharicChatbot:
|
| 9 |
-
def __init__(self, csv_path, threshold=0.
|
| 10 |
self.df = pd.read_csv(csv_path)
|
| 11 |
self.model = SentenceTransformer("intfloat/multilingual-e5-small")
|
| 12 |
self.threshold = threshold
|
|
|
|
| 6 |
from sklearn.metrics.pairwise import cosine_similarity
|
| 7 |
|
| 8 |
class AmharicChatbot:
|
| 9 |
+
def __init__(self, csv_path, threshold=0.80):
|
| 10 |
self.df = pd.read_csv(csv_path)
|
| 11 |
self.model = SentenceTransformer("intfloat/multilingual-e5-small")
|
| 12 |
self.threshold = threshold
|