Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demos/utils/example_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_example_embeddings(

ds = load_dataset(path, name, split=f"train[:{num_texts}]", cache_dir=cache_dir)

texts = ds[feature_name]
texts = list(ds[feature_name])

sanitized_path = path.replace("/", "_")
normalize = True
Expand Down
10 changes: 5 additions & 5 deletions demos/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import jecq
import faiss

type Params = list[float]
type Bounds = tuple[float, float]
type BoundsList = list[Bounds]
type Index = faiss.Index | jecq.Index
type ClosestLabels = list[list[int]]
Params = list[float]
Bounds = tuple[float, float]
BoundsList = list[Bounds]
Index = faiss.Index | jecq.Index
ClosestLabels = list[list[int]]