Update app.py
Browse files
app.py
CHANGED
@@ -80,8 +80,9 @@ YOUTUBE_URL_2 = "https://www.youtube.com/watch?v=hdhZwyf24mE"
|
|
80 |
#LLM Model mit dem gearbeitet wird
|
81 |
#openai-------------------------------------
|
82 |
#MODEL_NAME = "gpt-3.5-turbo-16k"
|
|
|
83 |
#MODEL_NAME= "gpt-4-1106-preview"
|
84 |
-
|
85 |
|
86 |
#verfügbare Modelle anzeigen lassen
|
87 |
|
@@ -163,8 +164,8 @@ def document_loading_splitting():
|
|
163 |
loader = WebBaseLoader(WEB_URL)
|
164 |
docs.extend(loader.load())
|
165 |
# Load YouTube
|
166 |
-
|
167 |
-
|
168 |
################################
|
169 |
# Document splitting
|
170 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150, chunk_size = 1500)
|
|
|
80 |
#LLM Model mit dem gearbeitet wird
|
81 |
#openai-------------------------------------
|
82 |
#MODEL_NAME = "gpt-3.5-turbo-16k"
|
83 |
+
MODEL_NAME = "gpt-3.5-turbo-1106"
|
84 |
#MODEL_NAME= "gpt-4-1106-preview"
|
85 |
+
|
86 |
|
87 |
#verfügbare Modelle anzeigen lassen
|
88 |
|
|
|
164 |
loader = WebBaseLoader(WEB_URL)
|
165 |
docs.extend(loader.load())
|
166 |
# Load YouTube
|
167 |
+
loader = GenericLoader(YoutubeAudioLoader([YOUTUBE_URL_1,YOUTUBE_URL_2], PATH_WORK + YOUTUBE_DIR), OpenAIWhisperParser())
|
168 |
+
docs.extend(loader.load())
|
169 |
################################
|
170 |
# Document splitting
|
171 |
text_splitter = RecursiveCharacterTextSplitter(chunk_overlap = 150, chunk_size = 1500)
|