Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -131,15 +131,15 @@ if st.session_state.df is not None:
|
|
131 |
# Agent for generating the main report (without Conclusion)
|
132 |
report_writer = Agent(
|
133 |
role="Technical Report Writer",
|
134 |
-
goal="
|
135 |
-
backstory="
|
136 |
llm=llm,
|
137 |
)
|
138 |
|
139 |
# New Agent for generating ONLY the Conclusion
|
140 |
conclusion_writer = Agent(
|
141 |
role="Conclusion Specialist",
|
142 |
-
goal="Summarize findings into a clear and concise Conclusion section.",
|
143 |
backstory="An expert in crafting well-structured and insightful conclusions.",
|
144 |
llm=llm,
|
145 |
)
|
@@ -172,7 +172,6 @@ if st.session_state.df is not None:
|
|
172 |
context=[analyze_data],
|
173 |
)
|
174 |
|
175 |
-
# β
Optimized Single Crew for Report and Conclusion
|
176 |
crew = Crew(
|
177 |
agents=[sql_dev, data_analyst, report_writer, conclusion_writer],
|
178 |
tasks=[extract_data, analyze_data, write_report, write_conclusion],
|
|
|
131 |
# Agent for generating the main report (without Conclusion)
|
132 |
report_writer = Agent(
|
133 |
role="Technical Report Writer",
|
134 |
+
goal="Summarize the analysis into a structured report with Introduction, Key Insights, and Analysis. DO NOT include any conclusion or summary.",
|
135 |
+
backstory="Markdown report excluding Conclusion and Summary.",
|
136 |
llm=llm,
|
137 |
)
|
138 |
|
139 |
# New Agent for generating ONLY the Conclusion
|
140 |
conclusion_writer = Agent(
|
141 |
role="Conclusion Specialist",
|
142 |
+
goal="Summarize findings into a clear and concise Conclusion/Summary section.",
|
143 |
backstory="An expert in crafting well-structured and insightful conclusions.",
|
144 |
llm=llm,
|
145 |
)
|
|
|
172 |
context=[analyze_data],
|
173 |
)
|
174 |
|
|
|
175 |
crew = Crew(
|
176 |
agents=[sql_dev, data_analyst, report_writer, conclusion_writer],
|
177 |
tasks=[extract_data, analyze_data, write_report, write_conclusion],
|