Spaces:
Running
on
Zero
Running
on
Zero
πwπ
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ from transformers import AutoProcessor, AutoModelForZeroShotImageClassification
|
|
5 |
from datasets import load_dataset
|
6 |
|
7 |
dataset = load_dataset("not-lain/embedded-pokemon", split="train")
|
|
|
8 |
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
|
|
|
5 |
from datasets import load_dataset
|
6 |
|
7 |
dataset = load_dataset("not-lain/embedded-pokemon", split="train")
|
8 |
+
dataset = dataset.add_faiss_index("embeddings")
|
9 |
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
|