Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def find(query):
|
|
26 |
file = open('quran-splitted.sav','rb')
|
27 |
quran_splitted = pickle.load(file)
|
28 |
quran_splitted['similarity'] = text_similarity
|
29 |
-
sorted_quran =
|
30 |
|
31 |
# insert the similarity value to dataframe & sort it
|
32 |
quran = pd.read_csv('quran-simple-clean.txt', delimiter="|")
|
|
|
26 |
file = open('quran-splitted.sav','rb')
|
27 |
quran_splitted = pickle.load(file)
|
28 |
quran_splitted['similarity'] = text_similarity
|
29 |
+
sorted_quran = quran_splitted.sort_values(by='similarity', ascending=False)
|
30 |
|
31 |
# insert the similarity value to dataframe & sort it
|
32 |
quran = pd.read_csv('quran-simple-clean.txt', delimiter="|")
|