Update app.py
Browse files166 unmodified lines167168169170170171172173174175176177178177179180181182166 unmodified lines
# Run agent on cleaned CSV raw_output = agent.run(""" You are a data analysis agent. Follow these instructions EXACTLY: You are a data analysis agent. Output in JSON only. Follow these instructions EXACTLY: 1. Load the data from the given `source_file` ONLY. DO NOT create your OWN DATA. 2. Analyze the data structure and generate up to 3 visualizations and 3 insights. 3. Save all figures to `./figures` as PNG using matplotlib or seaborn. 4. Use only authorized imports: `pandas`, `numpy`, `matplotlib.pyplot`, `seaborn`, `json`. 5. DO NOT return any explanations, thoughts, or narration outside the final JSON block 6. Run only 5 iteration and return output quickly. 7. DO NOT include any natural language (e.g., "Thoughts:", "Code:", explanations). 8. ONLY output a single, valid JSON block. No markdown or extra text. 7. Output ONLY the following JSON code block format, exactly: 9. Output ONLY the following JSON code block format, exactly: { 'observations': { 'observation_1_key': 'observation_1_value',app.py+4-2