Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -56,11 +56,11 @@ def find(query):
|
|
56 |
results['hadith_no'] = results['hadith_no'].str.strip()
|
57 |
|
58 |
url = 'https://sunnah.com/'+results['source_cat'].astype(str)+':'+results['hadith_no'].astype(str)
|
59 |
-
results['text_ar'] = '<a href="'+url+'">'+results['text_ar']+'</a>'
|
60 |
results = results.drop(columns=['source_cat'])
|
61 |
results['source'] = results['source'] + "(chapter " + results['chapter_no'].astype(str) + " , hadith " + results['hadith_no'].astype(str) + ")"
|
62 |
results['text'] = '<a href="'+url+'">'+results['text_ar']+ '</a>' + ' (' + results['source'].astype(str) + ')'
|
63 |
-
results = results.drop(columns=['chapter_no', 'hadith_no', 'chapter', 'similarity', 'text_ar', 'text_en'])
|
64 |
|
65 |
#return sorted_quran
|
66 |
filepath = Path(query+'.csv')
|
|
|
56 |
results['hadith_no'] = results['hadith_no'].str.strip()
|
57 |
|
58 |
url = 'https://sunnah.com/'+results['source_cat'].astype(str)+':'+results['hadith_no'].astype(str)
|
59 |
+
#results['text_ar'] = '<a href="'+url+'">'+results['text_ar']+'</a>'
|
60 |
results = results.drop(columns=['source_cat'])
|
61 |
results['source'] = results['source'] + "(chapter " + results['chapter_no'].astype(str) + " , hadith " + results['hadith_no'].astype(str) + ")"
|
62 |
results['text'] = '<a href="'+url+'">'+results['text_ar']+ '</a>' + ' (' + results['source'].astype(str) + ')'
|
63 |
+
results = results.drop(columns=['source', 'chapter_no', 'hadith_no', 'chapter', 'similarity', 'text_ar', 'text_en'])
|
64 |
|
65 |
#return sorted_quran
|
66 |
filepath = Path(query+'.csv')
|