eaglelandsonce
commited on
Commit
•
95a3a25
1
Parent(s):
b002f60
Update app.py
Browse files
app.py
CHANGED
@@ -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 comment on
|
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
|
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
|
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 comment on
|
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.""",
|
@@ -110,7 +110,7 @@ def crewai_process(research_topic):
|
|
110 |
allow_delegation=False,
|
111 |
llm = gemini_llm,
|
112 |
tools=[
|
113 |
-
|
114 |
|
115 |
]
|
116 |
|
@@ -125,24 +125,24 @@ def crewai_process(research_topic):
|
|
125 |
)
|
126 |
|
127 |
task2 = Task(
|
128 |
-
description=f"""
|
129 |
""",
|
130 |
agent=David
|
131 |
)
|
132 |
|
133 |
task3 = Task(
|
134 |
-
description=f"""
|
135 |
""",
|
136 |
agent=Sarah
|
137 |
)
|
138 |
task4 = Task(
|
139 |
-
description=f"""
|
140 |
""",
|
141 |
agent=Michael
|
142 |
)
|
143 |
task5 = Task(
|
144 |
-
description=f"""
|
145 |
-
|
146 |
""",
|
147 |
agent=Lisa
|
148 |
)
|
|
|
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 |
|
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 |
|
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 |
|
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.""",
|
|
|
110 |
allow_delegation=False,
|
111 |
llm = gemini_llm,
|
112 |
tools=[
|
113 |
+
GeminiSearchTools.gemini,
|
114 |
|
115 |
]
|
116 |
|
|
|
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 |
)
|