Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -50,16 +50,17 @@ 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
|
61 |
)
|
62 |
|
|
|
63 |
# Generate a response using the LLM
|
64 |
messages = [
|
65 |
{"role": "system", "content": system_message},
|
|
|
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, protective, and slightly obsessive personality."
|
61 |
)
|
62 |
|
63 |
+
|
64 |
# Generate a response using the LLM
|
65 |
messages = [
|
66 |
{"role": "system", "content": system_message},
|