DrishtiSharma commited on
Commit
3160971
ยท
verified ยท
1 Parent(s): 3a8d2c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -129,7 +129,7 @@ if st.session_state.df is not None:
129
 
130
  report_writer = Agent(
131
  role="Technical Report Writer",
132
- goal="Write a structured report with Introduction, Key Insights, and Analysis. DO NOT include any Conclusion or Summary.",
133
  backstory="Specializes in detailed analytical reports without conclusions.",
134
  llm=llm,
135
  )
@@ -156,20 +156,22 @@ if st.session_state.df is not None:
156
  )
157
 
158
  write_report = Task(
159
- description="Write the analysis report with Introduction, Key Insights, and Analysis. DO NOT include any Conclusion or Summary.",
160
  expected_output="Markdown-formatted report excluding Conclusion.",
161
  agent=report_writer,
162
  context=[analyze_data],
163
  )
164
 
165
  write_conclusion = Task(
166
- description="Write a brief and impactful 3-5 line Conclusion summarizing only the most important insights/findings. Include the max, min, and average salary"
167
- "and highlight the most impactful insights.",
168
- expected_output="Markdown-formatted Conclusion/Summary section with key insights and statistics.",
169
  agent=conclusion_writer,
170
  context=[analyze_data],
171
  )
172
 
 
 
173
  # Separate Crews for report and conclusion
174
  crew_report = Crew(
175
  agents=[sql_dev, data_analyst, report_writer],
 
129
 
130
  report_writer = Agent(
131
  role="Technical Report Writer",
132
+ goal="Write a structured report with Introduction and Key Insights. DO NOT include any Conclusion or Summary.",
133
  backstory="Specializes in detailed analytical reports without conclusions.",
134
  llm=llm,
135
  )
 
156
  )
157
 
158
  write_report = Task(
159
+ description="Write the analysis report with Introduction and Key Insights. DO NOT include any Conclusion or Summary.",
160
  expected_output="Markdown-formatted report excluding Conclusion.",
161
  agent=report_writer,
162
  context=[analyze_data],
163
  )
164
 
165
  write_conclusion = Task(
166
+ description="Summarize the key findings in 3-5 impactful lines, highlighting the maximum, minimum, and average salaries."
167
+ "Emphasize significant insights on salary distribution and influential compensation trends for strategic decision-making.",
168
+ expected_output="Markdown-formatted Conclusion section with key insights and statistics.",
169
  agent=conclusion_writer,
170
  context=[analyze_data],
171
  )
172
 
173
+
174
+
175
  # Separate Crews for report and conclusion
176
  crew_report = Crew(
177
  agents=[sql_dev, data_analyst, report_writer],