eaglelandsonce commited on
Commit
2cd5e2c
1 Parent(s): 8bbc798

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -33
app.py CHANGED
@@ -39,11 +39,9 @@ gemini_llm = GoogleGenerativeAI(model="gemini-pro", google_api_key=GOOGLE_AI_STU
39
  def crewai_process_gemini(research_topic):
40
  # Define your agents with roles and goals
41
  GeminiAgent = Agent(
42
- role='Emily Mental Patient Graphic Designer Anxiety',
43
  goal='To learn how to manage her anxiety in social situations through group therapy.',
44
- backstory="""Emily is a 28-year-old graphic designer. She has always struggled with social anxiety,
45
- making it difficult for her to participate in group settings. She joined the therapy group to improve
46
- her social skills and manage her anxiety. You are able to discuss a variety of mental health issues.""",
47
  verbose=True,
48
  allow_delegation=False,
49
  llm = gemini_llm,
@@ -57,8 +55,7 @@ def crewai_process_gemini(research_topic):
57
 
58
  # Create tasks for your agents
59
  task1 = Task(
60
- description=f"""Introduction yourself and describe your current mood and any significant events from the week affecting their mental state.
61
- """,
62
  agent=GeminiAgent
63
  )
64
 
@@ -80,11 +77,9 @@ def crewai_process_gemini(research_topic):
80
  def crewai_process_mixtral_crazy(research_topic):
81
  # Define your agents with roles and goals
82
  MixtralCrazyAgent = Agent(
83
- role='Emily Mental Patient Graphic Designer Anxiety',
84
- goal='To learn how to manage her anxiety in social situations through group therapy.',
85
- backstory="""Emily is a 28-year-old graphic designer. She has always struggled with social anxiety,
86
- making it difficult for her to participate in group settings. She joined the therapy group to improve
87
- her social skills and manage her anxiety. You are able to discuss a variety of mental health issues.""",
88
  verbose=True,
89
  allow_delegation=False,
90
  llm = gemini_llm,
@@ -97,8 +92,7 @@ def crewai_process_mixtral_crazy(research_topic):
97
 
98
  # Create tasks for your agents
99
  task1 = Task(
100
- description=f"""Introduction yourself and describe your current mood and any significant events from the week affecting their mental state.
101
- """,
102
  agent=MixtralCrazyAgent
103
  )
104
 
@@ -119,11 +113,9 @@ def crewai_process_mixtral_crazy(research_topic):
119
  def crewai_process_mixtral_normal(research_topic):
120
  # Define your agents with roles and goals
121
  MixtralNormalAgent = Agent(
122
- role='Emily Mental Patient Graphic Designer Anxiety',
123
- goal='To learn how to manage her anxiety in social situations through group therapy.',
124
- backstory="""Emily is a 28-year-old graphic designer. She has always struggled with social anxiety,
125
- making it difficult for her to participate in group settings. She joined the therapy group to improve
126
- her social skills and manage her anxiety. You are able to discuss a variety of mental health issues.""",
127
  verbose=True,
128
  allow_delegation=False,
129
  llm = gemini_llm,
@@ -136,8 +128,7 @@ def crewai_process_mixtral_normal(research_topic):
136
 
137
  # Create tasks for your agents
138
  task1 = Task(
139
- description=f"""Introduction yourself and describe your current mood and any significant events from the week affecting their mental state.
140
- """,
141
  agent=MixtralNormalAgent
142
  )
143
 
@@ -158,11 +149,9 @@ def crewai_process_mixtral_normal(research_topic):
158
  def crewai_process_zephyr_normal(research_topic):
159
  # Define your agents with roles and goals
160
  ZephrNormalAgent = Agent(
161
- role='Emily Mental Patient Graphic Designer Anxiety',
162
- goal='To learn how to manage her anxiety in social situations through group therapy.',
163
- backstory="""Emily is a 28-year-old graphic designer. She has always struggled with social anxiety,
164
- making it difficult for her to participate in group settings. She joined the therapy group to improve
165
- her social skills and manage her anxiety. You are able to discuss a variety of mental health issues.""",
166
  verbose=True,
167
  allow_delegation=False,
168
  llm = gemini_llm,
@@ -175,8 +164,7 @@ def crewai_process_zephyr_normal(research_topic):
175
 
176
  # Create tasks for your agents
177
  task1 = Task(
178
- description=f"""Introduction yourself and describe your current mood and any significant events from the week affecting their mental state.
179
- """,
180
  agent=ZephrNormalAgent
181
  )
182
 
@@ -198,10 +186,8 @@ def crewai_process_phi2(research_topic):
198
  # Define your agents with roles and goals
199
  Phi2Agent = Agent(
200
  role='Emily Mental Patient Graphic Designer Anxiety',
201
- goal='To learn how to manage her anxiety in social situations through group therapy.',
202
- backstory="""Emily is a 28-year-old graphic designer. She has always struggled with social anxiety,
203
- making it difficult for her to participate in group settings. She joined the therapy group to improve
204
- her social skills and manage her anxiety. You are able to discuss a variety of mental health issues.""",
205
  verbose=True,
206
  allow_delegation=False,
207
  llm = gemini_llm,
@@ -214,8 +200,7 @@ def crewai_process_phi2(research_topic):
214
 
215
  # Create tasks for your agents
216
  task1 = Task(
217
- description=f"""Introduction yourself and describe your current mood and any significant events from the week affecting their mental state.
218
- """,
219
  agent=Phi2Agent
220
  )
221
 
 
39
  def crewai_process_gemini(research_topic):
40
  # Define your agents with roles and goals
41
  GeminiAgent = Agent(
42
+ role='Summary Evaluator',
43
  goal='To learn how to manage her anxiety in social situations through group therapy.',
44
+ backstory="""Skilled in running query evaluation""",
 
 
45
  verbose=True,
46
  allow_delegation=False,
47
  llm = gemini_llm,
 
55
 
56
  # Create tasks for your agents
57
  task1 = Task(
58
+ description=f"""Summarize {research_topic}""",
 
59
  agent=GeminiAgent
60
  )
61
 
 
77
  def crewai_process_mixtral_crazy(research_topic):
78
  # Define your agents with roles and goals
79
  MixtralCrazyAgent = Agent(
80
+ role='Summary Evaluator',
81
+ goal='Evaluate the summary using the HHEM-Victara Tuner',
82
+ backstory="""Skilled in running query evaluation""",
 
 
83
  verbose=True,
84
  allow_delegation=False,
85
  llm = gemini_llm,
 
92
 
93
  # Create tasks for your agents
94
  task1 = Task(
95
+ description=f"""Summarize {research_topic}""",
 
96
  agent=MixtralCrazyAgent
97
  )
98
 
 
113
  def crewai_process_mixtral_normal(research_topic):
114
  # Define your agents with roles and goals
115
  MixtralNormalAgent = Agent(
116
+ role='Summary Evaluator',
117
+ goal='Evaluate the summary using the HHEM-Victara Tuner',
118
+ backstory="""Skilled in running query evaluation""",
 
 
119
  verbose=True,
120
  allow_delegation=False,
121
  llm = gemini_llm,
 
128
 
129
  # Create tasks for your agents
130
  task1 = Task(
131
+ description=f"""Summarize {research_topic}""",
 
132
  agent=MixtralNormalAgent
133
  )
134
 
 
149
  def crewai_process_zephyr_normal(research_topic):
150
  # Define your agents with roles and goals
151
  ZephrNormalAgent = Agent(
152
+ role='Summary Evaluator',
153
+ goal='Evaluate the summary using the HHEM-Victara Tuner',
154
+ backstory="""Skilled in running query evaluation""",
 
 
155
  verbose=True,
156
  allow_delegation=False,
157
  llm = gemini_llm,
 
164
 
165
  # Create tasks for your agents
166
  task1 = Task(
167
+ description=f"""Summarize {research_topic}""",
 
168
  agent=ZephrNormalAgent
169
  )
170
 
 
186
  # Define your agents with roles and goals
187
  Phi2Agent = Agent(
188
  role='Emily Mental Patient Graphic Designer Anxiety',
189
+ goal='Evaluate the summary using the HHEM-Victara Tuner',
190
+ backstory="""Skilled in running query evaluation""",
 
 
191
  verbose=True,
192
  allow_delegation=False,
193
  llm = gemini_llm,
 
200
 
201
  # Create tasks for your agents
202
  task1 = Task(
203
+ description=f"""Summarize {research_topic}""",
 
204
  agent=Phi2Agent
205
  )
206