KvrParaskevi commited on
Commit
f661274
1 Parent(s): c33f2c8

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -69,7 +69,7 @@ def demo_miny_memory():
69
  return memory
70
 
71
  def demo_chain(input_text, memory):
72
- PROMPT = PromptTemplate(input_variables=["history", "input"], template=template)
73
  conversation = ConversationChain(
74
  prompt=PROMPT,
75
  llm=llm,
 
69
  return memory
70
 
71
  def demo_chain(input_text, memory):
72
+ PROMPT = ChatPromptTemplate.from_template(template)
73
  conversation = ConversationChain(
74
  prompt=PROMPT,
75
  llm=llm,