DrishtiSharma commited on
Commit
81654df
Β·
verified Β·
1 Parent(s): c575495

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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="Write a clear, structured report containing ONLY Key Insights and Analysis. NO Introduction, Summary, or Conclusion.",
135
- backstory="An expert in crafting data-driven reports with clear insights.",
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],