Tesneem commited on
Commit
785deee
·
verified ·
1 Parent(s): 71a6152

Update app.py

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