bstraehle commited on
Commit
b1e2693
·
1 Parent(s): 7e2b6ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- #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)
 
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)