Instructions to use NightPrince/Toxic_Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use NightPrince/Toxic_Classification with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("NightPrince/Toxic_Classification") - Keras
How to use NightPrince/Toxic_Classification 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://NightPrince/Toxic_Classification") - Notebooks
- Google Colab
- Kaggle
Download saved_model.pb from NightPrince/Toxic_Classification: direct link, hf CLI and curl.
- Browser
- Download file 156 kB
-
https://huggingface.co/NightPrince/Toxic_Classification/resolve/main/saved_model.pb
- Command line
-
hf download hf://NightPrince/Toxic_Classification/saved_model.pb
-
curl -L -o saved_model.pb https://huggingface.co/NightPrince/Toxic_Classification/resolve/main/saved_model.pb
156 kB
- Xet hash:
- 8f049804931b8a945ec9b96b1ee0aa002c7514ab77dc5d4a0f6fd499a859e015
- Size of remote file:
- 156 kB
- SHA256:
- 1b5baa62ab78bb352b85c4406e2b493d97a3e2b80b1a83935f2a4db0a02e2f1b
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.