TextGen / youtube_ideas.py
abdullah10's picture
Upload 35 files
8bc7dc5
raw
history blame contribute delete
647 Bytes
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain
def landing_page_gen(brand, customer, action, llm):
landing_page_prompt = f"Generate a YouTube video idea that will provide a behind-the-scenes look at my {brand} and persuade my {customer} to take {action} with a sense of authenticity and relatability."
landing_page_promptTemp = PromptTemplate(
input_variables=["text_input"],
template="{text_input}")
landing_page_extraction_chain = LLMChain(llm=llm, prompt=landing_page_promptTemp)
landing_page = landing_page_extraction_chain.run(landing_page_prompt)
return landing_page