muhalmutaz commited on
Commit
1b4f1a3
·
1 Parent(s): 1585ac8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,8 +38,8 @@ def search(query,top_k=25):
38
 
39
  hits = sorted(hits, key=lambda x: x['cross-score'], reverse=True)
40
 
41
- for idx, hit in enumerate(hits[0:25]):
42
- if hit["cross-score"] > 0:
43
  ans.append(quran[hit['corpus_id']])
44
  if len(ans) == 0:
45
  ans.append("لا يوجد نتائج الرجاء تقريب كلمات البحث")
 
38
 
39
  hits = sorted(hits, key=lambda x: x['cross-score'], reverse=True)
40
 
41
+ for idx, hit in enumerate(hits[0:5]):
42
+ if hit["cross-score"] > -3:
43
  ans.append(quran[hit['corpus_id']])
44
  if len(ans) == 0:
45
  ans.append("لا يوجد نتائج الرجاء تقريب كلمات البحث")