Spaces:
Runtime error
Runtime error
Update query_data.py
Browse files- query_data.py +2 -2
query_data.py
CHANGED
@@ -15,7 +15,7 @@ Answer in Markdown:"""
|
|
15 |
|
16 |
def get_chain(chat_message, chat_history):
|
17 |
llm = OpenAI(temperature=0.9)
|
18 |
-
|
19 |
input_variables=["chat_message", "chat_history"]
|
20 |
-
output =
|
21 |
return output
|
|
|
15 |
|
16 |
def get_chain(chat_message, chat_history):
|
17 |
llm = OpenAI(temperature=0.9)
|
18 |
+
llm_chain = LLMChain(llm=llm, prompt=PromptTemplate.from_template(prompt_template)),
|
19 |
input_variables=["chat_message", "chat_history"]
|
20 |
+
output = llm_chain.run()
|
21 |
return output
|