DaniilAlpha commited on
Commit
501695e
1 Parent(s): 4a77b20

Update mapper.py

Browse files
Files changed (1) hide show
  1. mapper.py +1 -1
mapper.py CHANGED
@@ -2,7 +2,7 @@ from sentence_transformers import SentenceTransformer, util
2
 
3
  class Mapper:
4
  def __init__(self, model: str):
5
- self.__model = SentenceTransformer(f"models/{model}/")
6
 
7
  def __call__(self, query: str, data: list[str]):
8
  query_emb = self.__model.encode(query)
 
2
 
3
  class Mapper:
4
  def __init__(self, model: str):
5
+ self.__model = SentenceTransformer(model)
6
 
7
  def __call__(self, query: str, data: list[str]):
8
  query_emb = self.__model.encode(query)