Tesneem commited on
Commit
e50f834
·
verified ·
1 Parent(s): eb153cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,7 +14,8 @@ dataset = load_dataset("hugginglearners/netflix-shows")
14
  data = dataset['train'] # Accessing the 'train' split of the dataset
15
 
16
  # Convert the dataset to a list of dictionaries for easier indexing
17
- data_list = data.to_dict()
 
18
  # Combine description and genre for embedding
19
  def combine_description_title_and_genre(description, listed_in, title):
20
  return f"{description} Genre: {listed_in} Title: {title}"
 
14
  data = dataset['train'] # Accessing the 'train' split of the dataset
15
 
16
  # Convert the dataset to a list of dictionaries for easier indexing
17
+ data_list = list[data]
18
+
19
  # Combine description and genre for embedding
20
  def combine_description_title_and_genre(description, listed_in, title):
21
  return f"{description} Genre: {listed_in} Title: {title}"