Instructions to use mohit-20-m/shieldai-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use mohit-20-m/shieldai-models 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://mohit-20-m/shieldai-models") - Notebooks
- Google Colab
- Kaggle
Download message_classifier (1)/label_map.json from mohit-20-m/shieldai-models: direct link, hf CLI and curl.
- Browser
- Download file 214 Bytes
-
https://huggingface.co/mohit-20-m/shieldai-models/resolve/main/message_classifier%20(1)/label_map.json
- Command line
-
hf download 'hf://mohit-20-m/shieldai-models/message_classifier (1)/label_map.json'
-
curl -L -o label_map.json 'https://huggingface.co/mohit-20-m/shieldai-models/resolve/main/message_classifier%20(1)/label_map.json'
214 Bytes
| { | |
| "0": "Clean", | |
| "1": "Digital Arrest Scam", | |
| "2": "Fake Bank / KYC", | |
| "3": "Fake Government Notice", | |
| "4": "Job / Investment Scam", | |
| "5": "Prize / Lottery Scam", | |
| "6": "Loan Scam", | |
| "7": "Phishing Link" | |
| } |