Spaces:
Sleeping
Sleeping
bartman081523
commited on
Commit
·
115ce47
1
Parent(s):
c1f45eb
populate db
Browse files- app.py +1 -1
- gematria.db +2 -2
- gematria.db-journal +2 -2
app.py
CHANGED
@@ -265,7 +265,7 @@ def run_app():
|
|
265 |
# Pre-populate the database
|
266 |
logging.info("Starting database population...")
|
267 |
phrases_to_insert = [] # Collect phrases before inserting in bulk
|
268 |
-
for gematria_sum, phrase, book, chapter, verse in tqdm(populate_database(1, 39, max_phrase_length=
|
269 |
phrases_to_insert.append((gematria_sum, phrase, book, chapter, verse))
|
270 |
if len(phrases_to_insert) >= 1000: # Insert in batches of 1000 for efficiency
|
271 |
insert_phrases_to_db(phrases_to_insert)
|
|
|
265 |
# Pre-populate the database
|
266 |
logging.info("Starting database population...")
|
267 |
phrases_to_insert = [] # Collect phrases before inserting in bulk
|
268 |
+
for gematria_sum, phrase, book, chapter, verse in tqdm(populate_database(1, 39, max_phrase_length=5), desc="Populating Database"): # Books 1 to 39
|
269 |
phrases_to_insert.append((gematria_sum, phrase, book, chapter, verse))
|
270 |
if len(phrases_to_insert) >= 1000: # Insert in batches of 1000 for efficiency
|
271 |
insert_phrases_to_db(phrases_to_insert)
|
gematria.db
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:608f20665f9880dbf665ef83b7a655d66cb01c5f1756aaa21dcc23d2bae5586e
|
3 |
+
size 84742144
|
gematria.db-journal
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fdd6ae6a2b5c7177e47a798aa06924df1836e348f7bae234fe273814c8f6e9b7
|
3 |
+
size 25136
|