mirror of
https://github.com/open-webui/open-webui
synced 2025-05-17 12:03:41 +00:00
chore: requirements
This commit is contained in:
parent
2450953080
commit
d68aa5c708
@ -1060,10 +1060,9 @@ def process_youtube_video(form_data: ProcessUrlForm, user=Depends(get_verified_u
|
|||||||
collection_name = calculate_sha256_string(form_data.url)[:63]
|
collection_name = calculate_sha256_string(form_data.url)[:63]
|
||||||
|
|
||||||
loader = YoutubeLoader.from_youtube_url(
|
loader = YoutubeLoader.from_youtube_url(
|
||||||
form_data.url,
|
form_data.url, language=app.state.config.YOUTUBE_LOADER_LANGUAGE
|
||||||
language=app.state.config.YOUTUBE_LOADER_LANGUAGE,
|
|
||||||
translation=app.state.YOUTUBE_LOADER_TRANSLATION,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
docs = loader.load()
|
docs = loader.load()
|
||||||
content = " ".join([doc.page_content for doc in docs])
|
content = " ".join([doc.page_content for doc in docs])
|
||||||
log.debug(f"text_content: {content}")
|
log.debug(f"text_content: {content}")
|
||||||
|
@ -37,8 +37,8 @@ anthropic
|
|||||||
google-generativeai==0.7.2
|
google-generativeai==0.7.2
|
||||||
tiktoken
|
tiktoken
|
||||||
|
|
||||||
langchain==0.3.5
|
langchain==0.3.7
|
||||||
langchain-community==0.3.3
|
langchain-community==0.3.7
|
||||||
langchain-chroma==0.1.4
|
langchain-chroma==0.1.4
|
||||||
|
|
||||||
fake-useragent==1.5.1
|
fake-useragent==1.5.1
|
||||||
|
@ -44,8 +44,8 @@ dependencies = [
|
|||||||
"google-generativeai==0.7.2",
|
"google-generativeai==0.7.2",
|
||||||
"tiktoken",
|
"tiktoken",
|
||||||
|
|
||||||
"langchain==0.3.5",
|
"langchain==0.3.7",
|
||||||
"langchain-community==0.3.3",
|
"langchain-community==0.3.7",
|
||||||
"langchain-chroma==0.1.4",
|
"langchain-chroma==0.1.4",
|
||||||
|
|
||||||
"fake-useragent==1.5.1",
|
"fake-useragent==1.5.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user