def load_chain()

in courses/writing_prompts/streamlit_gemini_text/app.py [0:0]


def load_chain():
    llm = GeminiProLLM()
    memory = ConversationBufferMemory()
    chain = ConversationChain(llm=llm, memory=memory,
                              prompt=PromptTemplate(input_variables=['history', 'input'],      
                                                    template=template))
    return chain