Open-Orca/OpenOrca
Viewer • Updated • 2.94M • 12.9k • 1.61k
How to use runMark/tttttxxx with Keras:
# !pip install -U keras tensorflow huggingface_hub
# Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here;
# "jax" and "torch" also work for computation once TensorFlow is installed.
import os
os.environ["KERAS_BACKEND"] = "tensorflow"
import keras
model = keras.saving.load_model("hf://runMark/tttttxxx")
How to use runMark/tttttxxx with Scikit-learn:
from huggingface_hub import hf_hub_download
import joblib
model = joblib.load(
hf_hub_download("runMark/tttttxxx", "sklearn_model.joblib")
)
# only load pickle files from sources you trust
# read more about it here https://skops.readthedocs.io/en/stable/persistence.htmlYAML Metadata Error:"widget" must be an array
test model card