Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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,
|