Instructions to use drift-ai/drawify-snapsearch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use drift-ai/drawify-snapsearch with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="drift-ai/drawify-snapsearch") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("drift-ai/drawify-snapsearch") model = AutoModelForZeroShotImageClassification.from_pretrained("drift-ai/drawify-snapsearch", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
e6ef3bd
1
Parent(s): 80e016e
Upload model
Browse files- config.json +1 -1
- model.safetensors +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"CLIPModel"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/root/recommend-drawify/models",
|
| 3 |
"architectures": [
|
| 4 |
"CLIPModel"
|
| 5 |
],
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 605156676
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:203250b81a527e0863fad603c15990ce50d7478d673ffe078765266b0583e454
|
| 3 |
size 605156676
|