Instructions to use Zipeng365/WISP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use Zipeng365/WISP with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("Zipeng365/WISP", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
File size: 448 Bytes
93a9282 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | """Look up optional CPU symbols in this engine's compiled extension (``_kernels``)."""
import ctypes
from importlib.util import find_spec
def lookup(symbol):
ext = find_spec(__package__ + "._kernels")
paths = [ext.origin] if ext is not None and ext.origin else []
for path in paths:
try:
return getattr(ctypes.CDLL(str(path)), symbol)
except (OSError, AttributeError):
continue
return None
|