Spaces:
Sleeping
Sleeping
Commit
·
e11008c
1
Parent(s):
288fd07
Update app.py
Browse files
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(
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
19 |
# Create participant agents
|
20 |
-
participants = [Agent(
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
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
|