Instructions to use FredZhang7/google-safesearch-mini-tfjs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use FredZhang7/google-safesearch-mini-tfjs with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy) # See https://github.com/keras-team/tf-keras for more details. from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("FredZhang7/google-safesearch-mini-tfjs") - Notebooks
- Google Colab
- Kaggle
Commit ·
312519c
1
Parent(s): 6fcab6a
Update README.md
Browse files
README.md
CHANGED
|
@@ -22,7 +22,7 @@ pip install --upgrade transformers torchvision
|
|
| 22 |
from transformers import AutoModelForImageClassification
|
| 23 |
from torch import cuda
|
| 24 |
|
| 25 |
-
model = AutoModelForImageClassification.from_pretrained("FredZhang7/google-safesearch-mini", trust_remote_code=True, revision="
|
| 26 |
|
| 27 |
PATH_TO_IMAGE = 'https://images.unsplash.com/photo-1594568284297-7c64464062b1'
|
| 28 |
PRINT_TENSOR = False
|
|
|
|
| 22 |
from transformers import AutoModelForImageClassification
|
| 23 |
from torch import cuda
|
| 24 |
|
| 25 |
+
model = AutoModelForImageClassification.from_pretrained("FredZhang7/google-safesearch-mini", trust_remote_code=True, revision="6fcab6a27595a5f008625ec88c77c10739f3c219")
|
| 26 |
|
| 27 |
PATH_TO_IMAGE = 'https://images.unsplash.com/photo-1594568284297-7c64464062b1'
|
| 28 |
PRINT_TENSOR = False
|