Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|
160 |
expected_output="Markdown-formatted report excluding Conclusion.",
|
161 |
agent=report_writer,
|
162 |
context=[analyze_data],
|
163 |
)
|
164 |
|
165 |
write_conclusion = Task(
|
166 |
-
description="
|
167 |
-
|
168 |
-
expected_output="Markdown-formatted Conclusion
|
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],
|