mirror of
https://github.com/tcsenpai/easy-web-summarizer.git
synced 2025-06-06 18:45:21 +00:00
Update base_url in summarizer.py, translator.py, and yt_summarizer.py
This commit is contained in:
parent
935a605f6b
commit
10923d535e
@ -45,7 +45,7 @@ def setup_summarization_chain():
|
||||
input_variables=["text"],
|
||||
)
|
||||
|
||||
llm = ChatOllama(model="llama3", base_url="http://127.0.0.1:11434")
|
||||
llm = ChatOllama(model="llama3:instruct", base_url="http://127.0.0.1:11434")
|
||||
llm_chain = LLMChain(llm=llm, prompt=prompt_template)
|
||||
return llm_chain
|
||||
|
||||
|
@ -14,6 +14,6 @@ def setup_translator_chain():
|
||||
input_variables=["text"],
|
||||
)
|
||||
|
||||
llm = ChatOllama(model="llama3", base_url="http://127.0.0.1:11434")
|
||||
llm = ChatOllama(model="llama3:instruct", base_url="http://127.0.0.1:11434")
|
||||
llm_chain = LLMChain(llm=llm, prompt=prompt_template)
|
||||
return llm_chain
|
||||
|
@ -48,7 +48,7 @@ def yt_summarization_chain():
|
||||
DETAILED SUMMARY:""",
|
||||
input_variables=["text"],
|
||||
)
|
||||
llm = ChatOllama(model="llama3", base_url="http://127.0.0.1:11434")
|
||||
llm = ChatOllama(model="llama3:instruct", base_url="http://127.0.0.1:11434")
|
||||
summarize_chain = load_summarize_chain(
|
||||
llm=llm, prompt=prompt_template, verbose=True
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user