Update llm/llm.py
Browse files- llm/llm.py +1 -1
llm/llm.py
CHANGED
@@ -15,4 +15,4 @@ class LLM_chain:
|
|
15 |
prompt = PromptTemplate(template=template, input_variables=["entity"])
|
16 |
llm_chain = LLMChain(prompt=prompt, llm=self.llm, verbose=True)
|
17 |
output = llm_chain.invoke(entity)
|
18 |
-
return output
|
|
|
15 |
prompt = PromptTemplate(template=template, input_variables=["entity"])
|
16 |
llm_chain = LLMChain(prompt=prompt, llm=self.llm, verbose=True)
|
17 |
output = llm_chain.invoke(entity)
|
18 |
+
return output["text"]
|