Update app.py
Browse files
app.py
CHANGED
|
@@ -84,8 +84,9 @@ def run_agent(_):
|
|
| 84 |
- Correlation analysis
|
| 85 |
- 3+ visualizations
|
| 86 |
4. Extract 3+ bullet-point insights.
|
| 87 |
-
5.
|
| 88 |
-
|
|
|
|
| 89 |
6. Return a JSON with:
|
| 90 |
- 'insights': list of insights
|
| 91 |
- 'figures': list of figure file paths
|
|
|
|
| 84 |
- Correlation analysis
|
| 85 |
- 3+ visualizations
|
| 86 |
4. Extract 3+ bullet-point insights.
|
| 87 |
+
5. Before saving visualizations, run:
|
| 88 |
+
import os; os.makedirs("figures", exist_ok=True)
|
| 89 |
+
Then save all figures using plt.savefig("./figures/...")
|
| 90 |
6. Return a JSON with:
|
| 91 |
- 'insights': list of insights
|
| 92 |
- 'figures': list of figure file paths
|