zoya23 commited on
Commit
a8c4c26
·
verified ·
1 Parent(s): e65d3fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ few_shot_prompt = FewShotChatMessagePromptTemplate(
27
  # Now add intro system message + user input separately
28
  final_prompt = ChatPromptTemplate.from_messages([
29
  SystemMessage(content="The following are examples of dialogues and their summaries."),
30
- *few_shot_prompt.messages,
31
  ("human", "Summarize the following dialog:\n\n{dialogue}")
32
  ])
33
 
 
27
  # Now add intro system message + user input separately
28
  final_prompt = ChatPromptTemplate.from_messages([
29
  SystemMessage(content="The following are examples of dialogues and their summaries."),
30
+ *few_shot_prompt.get_messages(), # Use get_messages() instead of .messages
31
  ("human", "Summarize the following dialog:\n\n{dialogue}")
32
  ])
33