139_spanish-voice-trainer/main.py

20 lines
No EOL
524 B
Python

# main.py
import asyncio
from database.connection import init_db
from core.bulk_importer import BulkImporter
async def main():
# Keep database schemas active and verified
init_db()
# Initialize our ingestion utility
importer = BulkImporter()
# 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"
)
if __name__ == "__main__":
asyncio.run(main())