Spaces:
Sleeping
Sleeping
Commit
·
d7a708b
1
Parent(s):
7b3be45
async search
Browse files
app.py
CHANGED
|
@@ -208,7 +208,18 @@ def gematria_search_interface(phrase):
|
|
| 208 |
for book, phrases in results_by_book.items():
|
| 209 |
results.append(f"<h4>Book: {book_names.get(book, 'Unknown')}</h4>")
|
| 210 |
for words, chapter, verse in phrases:
|
| 211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
results.append("</div>")
|
| 213 |
|
| 214 |
# Add CSS styling
|
|
|
|
| 208 |
for book, phrases in results_by_book.items():
|
| 209 |
results.append(f"<h4>Book: {book_names.get(book, 'Unknown')}</h4>")
|
| 210 |
for words, chapter, verse in phrases:
|
| 211 |
+
translation = get_translation(words)
|
| 212 |
+
book_name_english = book_names.get(book, 'Unknown')
|
| 213 |
+
link = f"https://www.biblegateway.com/passage/?search={quote_plus(book_name_english)}+{chapter}%3A{verse}"
|
| 214 |
+
|
| 215 |
+
results.append(f"""
|
| 216 |
+
<div class='result-item'>
|
| 217 |
+
<p>Chapter: {chapter}, Verse: {verse}</p>
|
| 218 |
+
<p class='hebrew-phrase'>Hebrew Phrase: {words}</p>
|
| 219 |
+
<p>Translation: {translation}</p>
|
| 220 |
+
<a href='{link}' target='_blank' class='bible-link'>[See on Bible Gateway]</a>
|
| 221 |
+
</div>
|
| 222 |
+
""")
|
| 223 |
results.append("</div>")
|
| 224 |
|
| 225 |
# Add CSS styling
|