139_spanish-voice-trainer/main.py

20 lines
524 B
Python
Raw Normal View History

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
from core.bulk_importer import BulkImporter
2026-06-12 11:58:47 +00:00
async def main():
# Keep database schemas active and verified
2026-06-12 11:58:47 +00:00
init_db()
# Initialize our ingestion utility
importer = BulkImporter()
2026-06-12 11:58:47 +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__":
asyncio.run(main())