Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def query_pinecone(query, top_k):
|
|
29 |
|
30 |
def format_search_result(result):
|
31 |
data = result['metadata']
|
32 |
-
message = f"Ayah no: {data['ayah']}\nSurah no: {data['
|
33 |
|
34 |
return message
|
35 |
|
|
|
29 |
|
30 |
def format_search_result(result):
|
31 |
data = result['metadata']
|
32 |
+
message = f"Ayah no: {data['ayah']}\nSurah no: {data['surah']}\nSentence:{data['arabic-text']}\nTranslation: {data['en-translation']}\n Tafsir:{data['en-tafsir-mokhtasar']}\n Relevant Tafsir: {data['vector-chunk']}"
|
33 |
|
34 |
return message
|
35 |
|