Spaces:
Runtime error
Runtime error
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 |