eaglelandsonce
commited on
Commit
•
b002f60
1
Parent(s):
0725766
Update app.py
Browse files
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='To learn how to manage her anxiety in social situations.',
|
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='To gain insights into managing his bipolar disorder.',
|
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='To find strategies to cope with her depression.',
|
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='To overcome his PTSD and return to a normal
|
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='To facilitate the group progress and assist each member in their personal goals.',
|
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.""",
|
@@ -125,23 +125,23 @@ def crewai_process(research_topic):
|
|
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}.
|
145 |
Use Mixtral.
|
146 |
""",
|
147 |
agent=Lisa
|
|
|
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 |
|
55 |
David = Agent(
|
56 |
role='David Mental Patient Musician Bipolar',
|
57 |
+
goal=f'To gain insights into managing his bipolar disorder comment on previous and discuss {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 |
|
71 |
Sarah = Agent(
|
72 |
role='Sarah Mental Patient Former Teacher Depression',
|
73 |
+
goal=f'To find strategies to cope with her depression comment on previous and discuss {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 |
|
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 previous and discuss {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 |
|
103 |
Lisa = Agent(
|
104 |
role='Dr. Lisa Therapist',
|
105 |
+
goal=f'To facilitate the group progress and assist each member in their personal goals comment on previous and discuss {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.""",
|
|
|
125 |
)
|
126 |
|
127 |
task2 = Task(
|
128 |
+
description=f"""Comment on previous and Discuss the {research_topic}. Use Mixtral
|
129 |
""",
|
130 |
agent=David
|
131 |
)
|
132 |
|
133 |
task3 = Task(
|
134 |
+
description=f"""Commnet on previous and Discuss the {research_topic} . Use Mixtral
|
135 |
""",
|
136 |
agent=Sarah
|
137 |
)
|
138 |
task4 = Task(
|
139 |
+
description=f"""Comment on previous and Discuss the {research_topic}. Use Mixtral
|
140 |
""",
|
141 |
agent=Michael
|
142 |
)
|
143 |
task5 = Task(
|
144 |
+
description=f"""Comment on Previous and Discuss the {research_topic} create a 3 paragraph summary of discussion.
|
145 |
Use Mixtral.
|
146 |
""",
|
147 |
agent=Lisa
|