Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -160,6 +160,10 @@ def run_market_research(topic: str, progress_container, chat_container):
|
|
| 160 |
crew = create_research_crew(topic)
|
| 161 |
result = crew.kickoff()
|
| 162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
# Format and process the result
|
| 164 |
report_data = format_json_output(result)
|
| 165 |
|
|
|
|
| 160 |
crew = create_research_crew(topic)
|
| 161 |
result = crew.kickoff()
|
| 162 |
|
| 163 |
+
# Ensure result is a dictionary
|
| 164 |
+
if isinstance(result, list):
|
| 165 |
+
result = result[0]
|
| 166 |
+
|
| 167 |
# Format and process the result
|
| 168 |
report_data = format_json_output(result)
|
| 169 |
|