139_spanish-voice-trainer/main.py

20 lines
No EOL
525 B
Python

# main.py
import asyncio
from database.connection import init_db
from core.bulk_importer import BulkImporter
async def main():
# Verify tables exist or run schemas
init_db()
# Initialize the importer pipeline
importer = BulkImporter()
# Execute structural parse and database write operations
pdf_file = "aula_int_plus_1_glos_en_alfa.pdf"
textbook = "Aula Internacional Plus 1"
importer.import_pdf_glossary(pdf_file, textbook)
if __name__ == "__main__":
asyncio.run(main())