Instructions to use aduzlo/zello-valid-trial-v3.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use aduzlo/zello-valid-trial-v3.2 with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("aduzlo/zello-valid-trial-v3.2", "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
Update handler.py
Browse files- handler.py +2 -1
handler.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
from typing import Dict, List, Any
|
| 2 |
import joblib
|
| 3 |
import pandas as pd
|
|
|
|
| 4 |
|
| 5 |
class EndpointHandler:
|
| 6 |
def __init__(self, path=""):
|
| 7 |
-
self.model = joblib.load("/
|
| 8 |
|
| 9 |
def __call__(self, data: Dict[str, Any]) -> List[Any]:
|
| 10 |
"""
|
|
|
|
| 1 |
from typing import Dict, List, Any
|
| 2 |
import joblib
|
| 3 |
import pandas as pd
|
| 4 |
+
from vtclassifier import ValidTrialClassifier
|
| 5 |
|
| 6 |
class EndpointHandler:
|
| 7 |
def __init__(self, path=""):
|
| 8 |
+
self.model = joblib.load(path + "/valid_trial_v3_2.joblib")
|
| 9 |
|
| 10 |
def __call__(self, data: Dict[str, Any]) -> List[Any]:
|
| 11 |
"""
|