Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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['
|
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 |
|