eaglelandsonce commited on
Commit
e11008c
1 Parent(s): 288fd07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -14,11 +14,21 @@ def run_therapy_session(group_size, topic):
14
  return "Group size exceeds the number of available participant names."
15
 
16
  # Create the therapist agent
17
- dr_smith = Agent(role='Therapist', goal='Facilitate a supportive group discussion', llm='mixtral', verbose=True)
18
-
 
 
 
 
 
19
  # Create participant agents
20
- participants = [Agent(role='Group Therapy Participant', goal='Participate in group therapy', llm='mixtral', verbose=True)
21
- for _ in range(group_size - 1)]
 
 
 
 
 
22
  participants.append(dr_smith) # Add the therapist
23
 
24
  # Define tasks for each participant
 
14
  return "Group size exceeds the number of available participant names."
15
 
16
  # Create the therapist agent
17
+ dr_smith = Agent(
18
+ role='Therapist',
19
+ goal='Facilitate a supportive group discussion',
20
+ backstory='An experienced therapist specializing in group dynamics.',
21
+ llm='mixtral',
22
+ verbose=True
23
+ )
24
  # Create participant agents
25
+ participants = [Agent(
26
+ role='Group Therapy Participant',
27
+ goal='Participate in group therapy',
28
+ backstory=f'{name} is interested in sharing and learning from the group.',
29
+ llm='mixtral',
30
+ verbose=True)
31
+ for name in participant_names[:group_size - 1]]
32
  participants.append(dr_smith) # Add the therapist
33
 
34
  # Define tasks for each participant