CoolFace
Apppublic

MegaTronX/Subsystem_OS_Command_Access

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
model_s.py18 linesDownload Raw Back to root
1"""Load model_s."""2# pylint: disable=invalid-name3 4from pathlib import Path5import joblib6 7# from sentence_transformers import SentenceTransformer8from alive_progress import alive_bar9 10file_loc = "radiobee/model_s.lzma"11file_loc = "model_s.lzma"12if not Path(file_loc).exists():13    raise Exception(f"File {file_loc} does not exist.")14 15with alive_bar(1, title="Loading model_s, takes up to ~2 minutes...", length=3) as progress_bar:16    model_s = joblib.load(file_loc)17    progress_bar()  # pylint: disable=not-callable18