import sys
import os
import spam_detector_ai

# Dynamically append the package path to sys.path
pkg_dir = os.path.dirname(spam_detector_ai.__file__)
if pkg_dir not in sys.path:
    sys.path.insert(0, pkg_dir)

# Import and execute trainer logic
from spam_detector_ai import trainer