gsdf/EasyNegative
Viewer โข Updated โข 3 โข 4.46k โข 1.25k
How to use DAUNKIM/model2_repo 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://DAUNKIM/model2_repo")