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 ·
a0de6a5
1
Parent(s): d16bbb5
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="d16bbb53644959a071bd3b8ca0d886c65de6bd45")
|
| 26 |
|
| 27 |
PATH_TO_IMAGE = 'https://images.unsplash.com/photo-1594568284297-7c64464062b1'
|
| 28 |
PRINT_TENSOR = False
|