not-lain commited on
Commit
6808732
β€’
1 Parent(s): 34b71a1

🌘wπŸŒ–

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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