Delete components/caption_chain.py
Browse files- components/caption_chain.py +0 -12
components/caption_chain.py
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
from langchain import PromptTemplate
|
2 |
-
from langchain.chains import LLMChain
|
3 |
-
|
4 |
-
def chain(llm):
|
5 |
-
template = """Make 5 different advertisement captions about this product.
|
6 |
-
{product}
|
7 |
-
"""
|
8 |
-
|
9 |
-
prompt = PromptTemplate(template=template, input_variables=["product"])
|
10 |
-
|
11 |
-
llm_chain = LLMChain(prompt=prompt, llm=llm)
|
12 |
-
return llm_chain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|