Kdeveloper1029 commited on
Commit
d496cc4
·
verified ·
1 Parent(s): afc213f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- 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 these traits."
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},