pavanmutha commited on
Commit
001411d
·
verified ·
1 Parent(s): 0a2c5ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -122,14 +122,14 @@ def analyze_data(csv_file, additional_notes=""):
122
 
123
  # Run the CodeAgent
124
  raw_output = agent.run("""
125
- You are a helpful data analysis agent. Follow these instructions EXACTLY:
126
- 1. Load the data from the given `source_file` ONLY.
127
  2. Analyze the data structure and generate up to 5 visualizations and 5 insights.
128
  3. Save all figures to `./figures` as PNG using matplotlib or seaborn.
129
  4. Use only authorized imports: `pandas`, `numpy`, `matplotlib.pyplot`, `seaborn`, `json`.
130
- 5. DO NOT return any explanations, thoughts, or narration outside the final output block.
131
  6. Run only 5 iteration and return output quickly.
132
- ⚠️ Output ONLY the following code block format, exactly:
133
  {
134
  'observations': {
135
  'observation_1_key': 'observation_1_value',
 
122
 
123
  # Run the CodeAgent
124
  raw_output = agent.run("""
125
+ You are a data analysis agent. Follow these instructions EXACTLY:
126
+ 1. Load the data from the given `source_file` ONLY. DO NOT create your OWN DATA.
127
  2. Analyze the data structure and generate up to 5 visualizations and 5 insights.
128
  3. Save all figures to `./figures` as PNG using matplotlib or seaborn.
129
  4. Use only authorized imports: `pandas`, `numpy`, `matplotlib.pyplot`, `seaborn`, `json`.
130
+ 5. DO NOT return any explanations, thoughts, or narration outside the final JSON block
131
  6. Run only 5 iteration and return output quickly.
132
+ ⚠️ Output ONLY the following JSON code block format, exactly:
133
  {
134
  'observations': {
135
  'observation_1_key': 'observation_1_value',