1from huggingface_hub import hf_hub_download
2import joblib
34# Download from a category folder5model_path = hf_hub_download(6 repo_id="OKTAYBBS/DataScientst-models",7 filename="regression/gold_model.pkl"8)910model = joblib.load(model_path)11prediction = model.predict([[1500,70,20,1.1]])
python
1# For Keras models2import tensorflow as tf
34model_path = hf_hub_download(5 repo_id="OKTAYBBS/DataScientst-models",6 filename="deep_learning/pneumonia_model.keras"7)8model = tf.keras.models.load_model(model_path)