Skip to content

Commit 2ff3837

Browse files
Merge pull request #41 from VectorInstitute/diversity-visualization-fix
Fixed import errors in diversity visualization.
2 parents 210c4fa + e3af2a2 commit 2ff3837

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/3_evals/2_synthetic_data/gradio_visualize_diversity.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
uv run \
66
--env-file .env \
7-
gradio src.3_evals/2_synthetic_data/gradio_visualize_diversity.py
7+
gradio src/3_evals/2_synthetic_data/gradio_visualize_diversity.py
88
"""
99

1010
from typing import List
@@ -17,8 +17,8 @@
1717
from sklearn.decomposition import PCA
1818
from sklearn.manifold import TSNE
1919

20-
from ...utils import Configs, create_batches, gather_with_progress
21-
from ...utils.langfuse.shared_client import langfuse_client
20+
from src.utils import Configs, create_batches, gather_with_progress
21+
from src.utils.langfuse.shared_client import langfuse_client
2222

2323

2424
def reduce_dimensions(
@@ -79,7 +79,7 @@ async def get_projection_plot(
7979
embedding_batch_size: int = 16,
8080
) -> Figure:
8181
"""Obtain projection plot for the given dataset up to `limit` items."""
82-
lf_dataset_items = langfuse_client.get_dataset(dataset_name).items
82+
lf_dataset_items = langfuse_client.get_dataset(dataset_name.strip()).items
8383

8484
# Generate embeddings
8585
configs = Configs.from_env_var()

0 commit comments

Comments
 (0)