2026-06-12 11:58:47 +00:00
|
|
|
# main.py
|
2026-06-13 02:03:58 +00:00
|
|
|
import asyncio
|
2026-06-12 11:58:47 +00:00
|
|
|
from database.connection import init_db
|
2026-06-13 02:41:59 +00:00
|
|
|
from core.bulk_importer import BulkImporter
|
2026-06-12 11:58:47 +00:00
|
|
|
|
2026-06-13 02:41:59 +00:00
|
|
|
async def main():
|
|
|
|
|
# Keep database schemas active and verified
|
2026-06-12 11:58:47 +00:00
|
|
|
init_db()
|
|
|
|
|
|
2026-06-13 02:41:59 +00:00
|
|
|
# Initialize our ingestion utility
|
|
|
|
|
importer = BulkImporter()
|
2026-06-12 11:58:47 +00:00
|
|
|
|
2026-06-13 02:41:59 +00:00
|
|
|
# Process the file sitting right in your root directory
|
|
|
|
|
importer.import_pdf_glossary(
|
|
|
|
|
file_path="aula_int_plus_1_glos_en_alfa.pdf",
|
|
|
|
|
textbook_name="Aula Internacional 1 Plus"
|
2026-06-13 02:03:58 +00:00
|
|
|
)
|
2026-06-12 11:58:47 +00:00
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2026-06-13 02:41:59 +00:00
|
|
|
asyncio.run(main())
|