Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def find(query):
|
|
51 |
sorted_hadiths = hadiths.sort_values(by='similarity', ascending=False)
|
52 |
print("cekpoin3\n")
|
53 |
|
54 |
-
results = sorted_hadiths.head(
|
55 |
results['source_cat'] = results['source'].apply(categorize_source)
|
56 |
results['hadith_no'] = results['hadith_no'].str.strip()
|
57 |
|
|
|
51 |
sorted_hadiths = hadiths.sort_values(by='similarity', ascending=False)
|
52 |
print("cekpoin3\n")
|
53 |
|
54 |
+
results = sorted_hadiths.head(20).drop(columns=['id', 'hadith_id', 'chain_indx'])
|
55 |
results['source_cat'] = results['source'].apply(categorize_source)
|
56 |
results['hadith_no'] = results['hadith_no'].str.strip()
|
57 |
|