Spaces:
Sleeping
Sleeping
Commit
·
c3d6c02
1
Parent(s):
e11008c
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,6 @@ def run_therapy_session(group_size, topic):
|
|
| 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
|
|
@@ -26,8 +25,8 @@ def run_therapy_session(group_size, topic):
|
|
| 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 |
-
|
| 30 |
-
|
| 31 |
for name in participant_names[:group_size - 1]]
|
| 32 |
participants.append(dr_smith) # Add the therapist
|
| 33 |
|
|
@@ -40,7 +39,8 @@ def run_therapy_session(group_size, topic):
|
|
| 40 |
agents=participants,
|
| 41 |
tasks=tasks,
|
| 42 |
process=Process.sequential,
|
| 43 |
-
verbose=True
|
|
|
|
| 44 |
)
|
| 45 |
|
| 46 |
# Start the group therapy session
|
|
|
|
| 18 |
role='Therapist',
|
| 19 |
goal='Facilitate a supportive group discussion',
|
| 20 |
backstory='An experienced therapist specializing in group dynamics.',
|
|
|
|
| 21 |
verbose=True
|
| 22 |
)
|
| 23 |
# Create participant agents
|
|
|
|
| 25 |
role='Group Therapy Participant',
|
| 26 |
goal='Participate in group therapy',
|
| 27 |
backstory=f'{name} is interested in sharing and learning from the group.',
|
| 28 |
+
verbose=True,
|
| 29 |
+
allow_delegation=False)
|
| 30 |
for name in participant_names[:group_size - 1]]
|
| 31 |
participants.append(dr_smith) # Add the therapist
|
| 32 |
|
|
|
|
| 39 |
agents=participants,
|
| 40 |
tasks=tasks,
|
| 41 |
process=Process.sequential,
|
| 42 |
+
verbose=True,
|
| 43 |
+
allow_delegation=False
|
| 44 |
)
|
| 45 |
|
| 46 |
# Start the group therapy session
|