cryogenic22 commited on
Commit
e24f73e
·
verified ·
1 Parent(s): 982e3fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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