Update app.py
Browse files
app.py
CHANGED
@@ -73,10 +73,10 @@ def document_loading_splitting():
|
|
73 |
loader = WebBaseLoader(WEB_URL)
|
74 |
docs.extend(loader.load())
|
75 |
# Load YouTube
|
76 |
-
loader = GenericLoader(YoutubeAudioLoader([YOUTUBE_URL_1,
|
77 |
-
YOUTUBE_URL_2,
|
78 |
-
YOUTUBE_URL_3], YOUTUBE_DIR),
|
79 |
-
OpenAIWhisperParser())
|
80 |
docs.extend(loader.load())
|
81 |
# Document splitting
|
82 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150,
|
|
|
73 |
loader = WebBaseLoader(WEB_URL)
|
74 |
docs.extend(loader.load())
|
75 |
# Load YouTube
|
76 |
+
#loader = GenericLoader(YoutubeAudioLoader([YOUTUBE_URL_1,
|
77 |
+
#YOUTUBE_URL_2,
|
78 |
+
#YOUTUBE_URL_3], YOUTUBE_DIR),
|
79 |
+
#OpenAIWhisperParser())
|
80 |
docs.extend(loader.load())
|
81 |
# Document splitting
|
82 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150,
|