grantjw commited on
Commit
3f1b4eb
·
verified ·
1 Parent(s): 2ee520d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def load_reviews(url):
34
  # Assuming your DataFrame is named df
35
  df = df[(df['Transcript'] != ' ') & (df['Transcript'] != '')]
36
  # Assuming df DataFrame containing 'Transcript' and 'Video URL' columns
37
- all_content = [(row['Video URL'], row['Transcript']) for index, row in df.iterrows()]
38
  documents = [Document(page_content=doc, metadata={'url': url}) for (url, doc) in all_content]
39
  return documents
40
 
 
34
  # Assuming your DataFrame is named df
35
  df = df[(df['Transcript'] != ' ') & (df['Transcript'] != '')]
36
  # Assuming df DataFrame containing 'Transcript' and 'Video URL' columns
37
+ all_content = [(row['url'], row['Transcript']) for index, row in df.iterrows()]
38
  documents = [Document(page_content=doc, metadata={'url': url}) for (url, doc) in all_content]
39
  return documents
40