Instructions to use keras-io/text-classification-with-transformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use keras-io/text-classification-with-transformer 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("keras-io/text-classification-with-transformer") - Notebooks
- Google Colab
- Kaggle
Download saved_model.pb from keras-io/text-classification-with-transformer: direct link, hf CLI and curl.
- Browser
- Download file 411 kB
-
https://huggingface.co/keras-io/text-classification-with-transformer/resolve/main/saved_model.pb
- Command line
-
hf download hf://keras-io/text-classification-with-transformer/saved_model.pb
-
curl -L -o saved_model.pb https://huggingface.co/keras-io/text-classification-with-transformer/resolve/main/saved_model.pb
411 kB
- Xet hash:
- 9c3e832ca4099818a44da482d61cf113a09d74f066b75e5e5c05a8b9bfc80d4a
- Size of remote file:
- 411 kB
- SHA256:
- 042f24f41cd5075ed01ef84248b1eb432373ce9cad13b4b47fe54b653b90015f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.