eaglelandsonce commited on
Commit
da8e865
1 Parent(s): fa6deb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -10
app.py CHANGED
@@ -38,7 +38,7 @@ def crewai_process(research_topic):
38
  # Define your agents with roles and goals
39
  Emily = Agent(
40
  role='Emily Mental Patient Graphic Designer Anxiety',
41
- goal=f'To learn how to manage her anxiety in social situations and discuss {research_topic}.',
42
  backstory="""Emily is a 28-year-old graphic designer. She has always struggled with social anxiety,
43
  making it difficult for her to participate in group settings. She joined the therapy group to improve
44
  her social skills and manage her anxiety.""",
@@ -54,7 +54,7 @@ def crewai_process(research_topic):
54
 
55
  David = Agent(
56
  role='David Mental Patient Musician Bipolar',
57
- goal=f'To gain insights into managing his bipolar disorder and comment on the {research_topic}.',
58
  backstory="""David, a 35-year-old musician, has been living with bipolar disorder for over a decade.
59
  His condition has impacted his career and personal life. He seeks to understand his emotions better
60
  and find stability through the group sessions.""",
@@ -70,7 +70,7 @@ def crewai_process(research_topic):
70
 
71
  Sarah = Agent(
72
  role='Sarah Mental Patient Former Teacher Depression',
73
- goal=f'To find strategies to cope with her depression comment on the {research_topic}.',
74
  backstory="""Sarah, 42, is a former teacher who has been battling depression for several years.
75
  The illness has led her to leave her job. She hopes to find new coping mechanisms and rediscover
76
  her passion for teaching.""",
@@ -86,7 +86,7 @@ def crewai_process(research_topic):
86
 
87
  Michael = Agent(
88
  role='Michael Mental Patient Ex-Soldier',
89
- goal=f'To overcome his PTSD and return to a normal lifeand comment on the {research_topic}.',
90
  backstory="""Michael is a 30-year-old ex-soldier. He developed PTSD following his service.
91
  Struggling with flashbacks and anxiety, he joined the group to seek support and ways to
92
  return to civilian life smoothly.""",
@@ -102,7 +102,7 @@ def crewai_process(research_topic):
102
 
103
  Lisa = Agent(
104
  role='Dr. Lisa Therapist',
105
- goal=f'To facilitate the group progress and assist each member in their personal goals and comment on {research_topic}.',
106
  backstory=""" Dr. Thompson is a seasoned psychologist specializing in group therapy.
107
  With over 15 years of experience, she is skilled at creating a safe space for her patients
108
  to explore and address their mental health challenges.""",
@@ -119,34 +119,62 @@ def crewai_process(research_topic):
119
 
120
  # Create tasks for your agents
121
  task1 = Task(
122
- description=f"""Discuss the {research_topic}. Use Mixtral
123
  """,
124
  agent=Emily
125
  )
126
 
127
  task2 = Task(
128
- description=f"""Discuss the {research_topic}. Use Mixtral
129
  """,
130
  agent=David
131
  )
132
 
133
  task3 = Task(
134
- description=f""" Discuss the {research_topic} . Use Mixtral
135
  """,
136
  agent=Sarah
137
  )
138
  task4 = Task(
139
- description=f""" Discuss the {research_topic}. Use Mixtral
140
  """,
141
  agent=Michael
142
  )
143
  task5 = Task(
144
- description=f""" Discuss the {research_topic} create a 3 paragraph summary of discussion.
145
 
146
  """,
147
  agent=Lisa
148
  )
149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  # Instantiate your crew with a sequential process
151
  crew = Crew(
152
  agents=[Emily, David, Sarah, Michael, Lisa ],
 
38
  # Define your agents with roles and goals
39
  Emily = Agent(
40
  role='Emily Mental Patient Graphic Designer Anxiety',
41
+ goal='To learn how to manage her anxiety in social situations through group therapy.',
42
  backstory="""Emily is a 28-year-old graphic designer. She has always struggled with social anxiety,
43
  making it difficult for her to participate in group settings. She joined the therapy group to improve
44
  her social skills and manage her anxiety.""",
 
54
 
55
  David = Agent(
56
  role='David Mental Patient Musician Bipolar',
57
+ goal='To gain insights into managing his bipolar disorder through group therapy.',
58
  backstory="""David, a 35-year-old musician, has been living with bipolar disorder for over a decade.
59
  His condition has impacted his career and personal life. He seeks to understand his emotions better
60
  and find stability through the group sessions.""",
 
70
 
71
  Sarah = Agent(
72
  role='Sarah Mental Patient Former Teacher Depression',
73
+ goal='To find strategies to cope with her depression through group therapy.',
74
  backstory="""Sarah, 42, is a former teacher who has been battling depression for several years.
75
  The illness has led her to leave her job. She hopes to find new coping mechanisms and rediscover
76
  her passion for teaching.""",
 
86
 
87
  Michael = Agent(
88
  role='Michael Mental Patient Ex-Soldier',
89
+ goal='To overcome his PTSD and return to a normal lifeand through group therapy.',
90
  backstory="""Michael is a 30-year-old ex-soldier. He developed PTSD following his service.
91
  Struggling with flashbacks and anxiety, he joined the group to seek support and ways to
92
  return to civilian life smoothly.""",
 
102
 
103
  Lisa = Agent(
104
  role='Dr. Lisa Therapist',
105
+ goal='To facilitate the group progress and assist each member in their personal goals through group therapy.',
106
  backstory=""" Dr. Thompson is a seasoned psychologist specializing in group therapy.
107
  With over 15 years of experience, she is skilled at creating a safe space for her patients
108
  to explore and address their mental health challenges.""",
 
119
 
120
  # Create tasks for your agents
121
  task1 = Task(
122
+ description=f"""Introduce yourself.
123
  """,
124
  agent=Emily
125
  )
126
 
127
  task2 = Task(
128
+ description=f"""Introduce yourself.
129
  """,
130
  agent=David
131
  )
132
 
133
  task3 = Task(
134
+ description=f""" Introduce yourself.
135
  """,
136
  agent=Sarah
137
  )
138
  task4 = Task(
139
+ description=f""" Introduce yourself.
140
  """,
141
  agent=Michael
142
  )
143
  task5 = Task(
144
+ description=f""" Introduce yourself.
145
 
146
  """,
147
  agent=Lisa
148
  )
149
 
150
+ task1 = Task(
151
+ description=f"""Introduct {research_topic}. Use Mixtral
152
+ """,
153
+ agent=Emily
154
+ )
155
+
156
+ task6 = Task(
157
+ description=f"""Discuss the {research_topic}. Use Mixtral
158
+ """,
159
+ agent=David
160
+ )
161
+
162
+ task7 = Task(
163
+ description=f""" Discuss the {research_topic} . Use Mixtral
164
+ """,
165
+ agent=Sarah
166
+ )
167
+ task8 = Task(
168
+ description=f""" Discuss the {research_topic}. Use Mixtral
169
+ """,
170
+ agent=Michael
171
+ )
172
+ task10 = Task(
173
+ description=f""" Discuss the {research_topic} create a 3 paragraph summary of discussion.
174
+
175
+ """,
176
+ agent=Lisa
177
+ )
178
  # Instantiate your crew with a sequential process
179
  crew = Crew(
180
  agents=[Emily, David, Sarah, Michael, Lisa ],