Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -60,11 +60,11 @@ def document_loading_splitting():
|
|
60 |
loader = WebBaseLoader(WEB_URL)
|
61 |
docs.extend(loader.load())
|
62 |
# Load YouTube
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
# Document splitting
|
69 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150,
|
70 |
chunk_size = 1500)
|
|
|
60 |
loader = WebBaseLoader(WEB_URL)
|
61 |
docs.extend(loader.load())
|
62 |
# Load YouTube
|
63 |
+
loader = GenericLoader(YoutubeAudioLoader([YOUTUBE_URL_1,
|
64 |
+
YOUTUBE_URL_2,
|
65 |
+
YOUTUBE_URL_3], YOUTUBE_DIR),
|
66 |
+
OpenAIWhisperParser())
|
67 |
+
docs.extend(loader.load())
|
68 |
# Document splitting
|
69 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150,
|
70 |
chunk_size = 1500)
|