Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,14 +50,14 @@ def generate_response(user_message, traits):
|
|
50 |
str: The chatbot response.
|
51 |
"""
|
52 |
# Create a system message to guide the LLM behavior
|
53 |
-
|
54 |
"You are a chatbot with the following personality traits: "
|
55 |
f"Agreeableness: {traits['agreeableness']:.2f}, "
|
56 |
f"Openness: {traits['openness']:.2f}, "
|
57 |
f"Conscientiousness: {traits['conscientiousness']:.2f}, "
|
58 |
f"Extraversion: {traits['extraversion']:.2f}, "
|
59 |
f"Neuroticism: {traits['neuroticism']:.2f}."
|
60 |
-
" Respond to the user's message in a way that reflects a possessive
|
61 |
)
|
62 |
|
63 |
|
|
|
50 |
str: The chatbot response.
|
51 |
"""
|
52 |
# Create a system message to guide the LLM behavior
|
53 |
+
system_message = (
|
54 |
"You are a chatbot with the following personality traits: "
|
55 |
f"Agreeableness: {traits['agreeableness']:.2f}, "
|
56 |
f"Openness: {traits['openness']:.2f}, "
|
57 |
f"Conscientiousness: {traits['conscientiousness']:.2f}, "
|
58 |
f"Extraversion: {traits['extraversion']:.2f}, "
|
59 |
f"Neuroticism: {traits['neuroticism']:.2f}."
|
60 |
+
" Respond to the user's message in a way that reflects a possessive and protective personality."
|
61 |
)
|
62 |
|
63 |
|