Update app.py
Browse files3 unmodified lines45678928 unmodified lines38394041424344454647483 unmodified linesfrom langchain import LLMChain, PromptTemplatefrom langchain.memory import ConversationBufferMemoryfrom langchain_google_genai import (HarmBlockThreshold,HarmCategory,)28 unmodified linesllm_chain = LLMChain(llm=ChatGoogleGenerativeAI(model="gemini-1.5-flash-lastest"),safety_settings={HarmCategory.HARM_CATEGORY_HARASSMENT: HarmBlockThreshold.BLOCK_NONE,HarmCategory.HARM_CATEGORY_HATE_SPEECH: HarmBlockThreshold.BLOCK_NONE,HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: HarmBlockThreshold.BLOCK_NONE,HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE,},prompt=prompt,verbose=True,memory=memory,3 unmodified lines4567891028 unmodified lines39404142434445463 unmodified linesfrom langchain import LLMChain, PromptTemplatefrom langchain.memory import ConversationBufferMemoryfrom langchain_google_genai import (ChatGoogleGenerativeAI,HarmBlockThreshold,HarmCategory,)28 unmodified linesllm_chain = LLMChain(llm=ChatGoogleGenerativeAI(model="gemini-1.5-flash-lastest"),safety_settings={HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: HarmBlockThreshold.BLOCK_NONE,},prompt=prompt,verbose=True,memory=memory,
app.py+3-5