Update app.py
Browse files166 unmodified lines167168169170171172173174175176177178179180166 unmodified lines# Run agent on cleaned CSVraw_output = agent.run("""You are a data analysis agent. 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 block6. Run only 5 iteration and return output quickly.7. Output ONLY the following JSON code block format, exactly:{'observations': {'observation_1_key': 'observation_1_value',166 unmodified lines167168169170171172173174175176177178179180181182166 unmodified lines# Run agent on cleaned CSVraw_output = agent.run("""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 block6. 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.9. Output ONLY the following JSON code block format, exactly:{'observations': {'observation_1_key': 'observation_1_value',
app.py+4-2