pavanmutha commited on
Commit
3231a89
·
verified ·
1 Parent(s): 1257640

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -115,13 +115,14 @@ def analyze_data(csv_file, additional_notes=""):
115
  "source_file": csv_file.name if csv_file else None
116
  })
117
 
118
- agent = CodeAgent(tools=[], model=model, additional_authorized_imports=["numpy", "pandas", "matplotlib.pyplot", "seaborn", "sklearn"])
119
  analysis_result = agent.run("""
120
  You are an expert data analyst. Perform comprehensive analysis including:
121
  1. Basic statistics and data quality checks
122
  2. 3 insightful analytical questions about relationships in the data
123
  3. Visualization of key patterns and correlations
124
  4. Actionable real-world insights derived from findings.
 
125
  Generate publication-quality visualizations and save to './figures/'.
126
  Return the analysis results as a python dictionary that can be parsed by ast.literal_eval().
127
  The dictionary should have the following structure:
 
115
  "source_file": csv_file.name if csv_file else None
116
  })
117
 
118
+ agent = CodeAgent(tools=[], model=model, additional_authorized_imports=["numpy", "pandas", "matplotlib.pyplot", "seaborn", "sklearn", "json"])
119
  analysis_result = agent.run("""
120
  You are an expert data analyst. Perform comprehensive analysis including:
121
  1. Basic statistics and data quality checks
122
  2. 3 insightful analytical questions about relationships in the data
123
  3. Visualization of key patterns and correlations
124
  4. Actionable real-world insights derived from findings.
125
+ Don't write to any files. Just return all results in the interface.
126
  Generate publication-quality visualizations and save to './figures/'.
127
  Return the analysis results as a python dictionary that can be parsed by ast.literal_eval().
128
  The dictionary should have the following structure: