Spaces:
Runtime error
Runtime error
Update pages/3_Video_QA.py
Browse files- pages/3_Video_QA.py +1 -1
pages/3_Video_QA.py
CHANGED
|
@@ -98,7 +98,7 @@ if video_url and st.button("Generate Transcript"):
|
|
| 98 |
transcript = loader.load()
|
| 99 |
|
| 100 |
# Split into documents for chunking
|
| 101 |
-
docs = [Document(page_content=entry
|
| 102 |
chunks = text_splitter.split_documents(docs)
|
| 103 |
|
| 104 |
# Initialize FAISS vector store
|
|
|
|
| 98 |
transcript = loader.load()
|
| 99 |
|
| 100 |
# Split into documents for chunking
|
| 101 |
+
docs = [Document(page_content=entry.page_content) for entry in transcript]
|
| 102 |
chunks = text_splitter.split_documents(docs)
|
| 103 |
|
| 104 |
# Initialize FAISS vector store
|