eaglelandsonce commited on
Commit
49ab909
1 Parent(s): f72b262

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -5
app.py CHANGED
@@ -41,7 +41,7 @@ def crewai_process(research_topic):
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.""",
45
  verbose=True,
46
  allow_delegation=False,
47
  llm = gemini_llm,
@@ -57,7 +57,7 @@ def crewai_process(research_topic):
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.""",
61
  verbose=True,
62
  allow_delegation=False,
63
  llm = gemini_llm,
@@ -73,7 +73,7 @@ def crewai_process(research_topic):
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.""",
77
  verbose=True,
78
  allow_delegation=False,
79
  llm = gemini_llm,
@@ -89,7 +89,7 @@ def crewai_process(research_topic):
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.""",
93
  verbose=True,
94
  allow_delegation=False,
95
  llm = gemini_llm,
@@ -105,7 +105,8 @@ def crewai_process(research_topic):
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.""",
 
109
  verbose=True,
110
  allow_delegation=False,
111
  llm = gemini_llm,
@@ -115,6 +116,18 @@ def crewai_process(research_topic):
115
  ]
116
 
117
  )
 
 
 
 
 
 
 
 
 
 
 
 
118
 
119
 
120
  # Create tasks for your agents
 
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. You are able to discuss a variety of mental health issues.""",
45
  verbose=True,
46
  allow_delegation=False,
47
  llm = gemini_llm,
 
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. You are able to discuss a variety of mental health issues.""",
61
  verbose=True,
62
  allow_delegation=False,
63
  llm = gemini_llm,
 
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. You are able to discuss a variety of mental health issues.""",
77
  verbose=True,
78
  allow_delegation=False,
79
  llm = gemini_llm,
 
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. You are able to discuss a variety of mental health issues.""",
93
  verbose=True,
94
  allow_delegation=False,
95
  llm = gemini_llm,
 
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. You are able to discuss a variety of mental health issues and
109
+ offer sound advice.""",
110
  verbose=True,
111
  allow_delegation=False,
112
  llm = gemini_llm,
 
116
  ]
117
 
118
  )
119
+
120
+ Tammy = Agent(
121
+ role='Lisa',
122
+ goal='To take notes and produce a 3 paragraph summary of the group therapy session',
123
+ backstory=""" Tammy is a 23 year old college intern who is Lisa's assistant. Her job is to take notes and produce a three pargraph summary of the group therapy.""",
124
+ verbose=True,
125
+ allow_delegation=False,
126
+ llm = gemini_llm
127
+
128
+
129
+ )
130
+
131
 
132
 
133
  # Create tasks for your agents