Files
new/train_card_model.py
e2hang ed2fadb625 What
2026-04-20 20:25:35 +08:00

24 lines
518 B
Python

#!/usr/bin/env python3
"""Entry point for training the Card Model.
Usage:
cd /path/to/poker
python train_card_model.py
This script adds the poker directory to sys.path so that the
card_model package can be imported correctly.
"""
import sys
import os
# Ensure the poker directory is on the Python path
poker_dir = os.path.dirname(os.path.abspath(__file__))
if poker_dir not in sys.path:
sys.path.insert(0, poker_dir)
from card_model.train_card_model import main
if __name__ == "__main__":
main()