kdallash commited on
Commit
8be5c24
·
verified ·
1 Parent(s): 216e8a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -35,7 +35,7 @@ model = SentenceTransformer(
35
  model.max_seq_length = 512
36
  # Import retrieval logic
37
  from retrieval import hybrid_search_fixed
38
- from utils import bm25_tokenize
39
 
40
  # -----------------------------
41
  # Search function (UI entry)
@@ -49,6 +49,7 @@ def search_hadith(query, top_k):
49
  df=df,
50
  bm25=bm25,
51
  model=model,
 
52
  hadith_embeddings=hadith_embeddings,
53
  anchor_index=anchor_index,
54
  anchor_dict=anchor_dict,
 
35
  model.max_seq_length = 512
36
  # Import retrieval logic
37
  from retrieval import hybrid_search_fixed
38
+ from utils import preprocess_query
39
 
40
  # -----------------------------
41
  # Search function (UI entry)
 
49
  df=df,
50
  bm25=bm25,
51
  model=model,
52
+ preprocess_query=preprocess_query,
53
  hadith_embeddings=hadith_embeddings,
54
  anchor_index=anchor_index,
55
  anchor_dict=anchor_dict,