Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
|