Project Brief
Build a web page that takes a dataset (e.g., a user-uploaded CSV file) and automatically generates a simple report that includes both visualizations and a written narrative.
Core Tasks
- Create an interface for a user to upload a CSV file.
- Write a backend script that analyzes the uploaded data using an AI. Your prompt should ask the AI to act as a data analyst, identify the most important insights in the data, and suggest 2-3 appropriate charts to visualize these insights.
- Based on the AI's suggestions, generate the charts using a library like Matplotlib or Plotly.
- Send the insights and the generated charts back to the AI in a second prompt, asking it to write a short, narrative summary of the data story.
- Display the charts and the AI-written narrative on the webpage.