Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ embedding_model = SentenceTransformer("thenlper/gte-large")
|
|
11 |
|
12 |
# Example dataset with genres (replace with your actual data)
|
13 |
dataset = load_dataset("hugginglearners/netflix-shows")
|
14 |
-
dataset = dataset
|
15 |
data = dataset['train'] # Accessing the 'train' split of the dataset
|
16 |
|
17 |
# Convert the dataset to a list of dictionaries for easier indexing
|
|
|
11 |
|
12 |
# Example dataset with genres (replace with your actual data)
|
13 |
dataset = load_dataset("hugginglearners/netflix-shows")
|
14 |
+
dataset = dataset.filter(lambda x: x['description'] is not None and x['listed_in'] is not None and x['title'] is not None)
|
15 |
data = dataset['train'] # Accessing the 'train' split of the dataset
|
16 |
|
17 |
# Convert the dataset to a list of dictionaries for easier indexing
|