Spaces:
duan98
/
Sleeping

TDN-M commited on
Commit
83f83b3
verified
1 Parent(s): c22ba72

Delete components/caption_chain.py

Browse files
Files changed (1) hide show
  1. 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