Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -320,9 +320,17 @@ def run_market_research(topic: str, progress_container, chat_container):
|
|
| 320 |
crew = create_research_crew(topic)
|
| 321 |
result = crew.kickoff()
|
| 322 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
# Format and process the result
|
| 324 |
report_data = format_json_output(result)
|
| 325 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 326 |
# Add visualizations
|
| 327 |
charts = generate_visualizations(report_data)
|
| 328 |
report_data['charts'] = charts
|
|
|
|
| 320 |
crew = create_research_crew(topic)
|
| 321 |
result = crew.kickoff()
|
| 322 |
|
| 323 |
+
# Debugging: Display raw output to verify data
|
| 324 |
+
st.write("Debug: Raw output from CrewAI agents:")
|
| 325 |
+
st.write(result)
|
| 326 |
+
|
| 327 |
# Format and process the result
|
| 328 |
report_data = format_json_output(result)
|
| 329 |
|
| 330 |
+
# Debugging: Display formatted JSON output
|
| 331 |
+
st.write("Debug: Formatted JSON output:")
|
| 332 |
+
st.write(report_data)
|
| 333 |
+
|
| 334 |
# Add visualizations
|
| 335 |
charts = generate_visualizations(report_data)
|
| 336 |
report_data['charts'] = charts
|