Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,12 +15,10 @@ examples = [
|
|
15 |
for dialogue in dataset
|
16 |
]
|
17 |
|
18 |
-
# Create FewShotChatMessagePromptTemplate
|
19 |
example_prompt = FewShotChatMessagePromptTemplate(
|
20 |
examples=examples,
|
21 |
-
input_variables=["input"]
|
22 |
-
prefix="You are a helpful summarizer. Here are a few examples:",
|
23 |
-
suffix="Now summarize this: {input}"
|
24 |
)
|
25 |
|
26 |
# Streamlit UI
|
|
|
15 |
for dialogue in dataset
|
16 |
]
|
17 |
|
18 |
+
# Create FewShotChatMessagePromptTemplate without prefix and suffix
|
19 |
example_prompt = FewShotChatMessagePromptTemplate(
|
20 |
examples=examples,
|
21 |
+
input_variables=["input"] # only the required fields
|
|
|
|
|
22 |
)
|
23 |
|
24 |
# Streamlit UI
|