Skip to content

Commit

Permalink
feat: Supporting latest sapientml-core with python 3.9 version (#86)
Browse files Browse the repository at this point in the history
Signed-off-by: HimanshuRRai <himanshu.rai@fujitsu.com>
Co-authored-by: HimanshuRRai <himanshu.rai@fujitsu.com>
  • Loading branch information
Shakeer1024-RBA and HimanshuRRai authored Sep 4, 2024
1 parent 10e18e7 commit f568c25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ nbformat = "^5.9.2"
nltk = "^3.8.1"
numba = ">=0.57.1,<0.61.0"
optuna = "^3.2.0"
python = ">=3.10,<3.13"
python = ">=3.9,<3.13"
sapientml = "*"
scikit-learn = "1.3.2"
scipy = "^1.11.1"
Expand Down
7 changes: 6 additions & 1 deletion sapientml_core/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import os
import re
import subprocess
import sys
import time
from datetime import datetime
from glob import glob
from importlib.metadata import entry_points
from pathlib import Path
from shutil import copyfile
from typing import Tuple, Union
Expand All @@ -41,6 +41,11 @@
from .seeding.predictor import predict
from .training import project_corpus

if sys.version_info.minor <= 9:
from importlib_metadata import entry_points
else:
from importlib.metadata import entry_points

logger = setup_logger()


Expand Down

0 comments on commit f568c25

Please sign in to comment.