davidleocadio94
Claude Opus 4.5
commited on
Commit
Β·
f2ffd5d
1
Parent(s):
8adbb85
docs: transform README to portfolio-optimized format
Browse files- Add Live Demo badge linking to HuggingFace Space
- Add tech stack badges (Gradio, OpenAI, E2B, Python, HuggingFace)
- Professional features section with action-oriented language
- Getting Started with local development instructions
- Example queries section showing capabilities
- Clean project structure documentation
- Preserve HuggingFace Spaces frontmatter
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
README.md
CHANGED
|
@@ -12,22 +12,73 @@ pinned: false
|
|
| 12 |
|
| 13 |
# Data Analyzer Agent
|
| 14 |
|
| 15 |
-
AI-powered data analysis assistant
|
|
|
|
|
|
|
| 16 |
|
| 17 |
## Features
|
| 18 |
-
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Data Analyzer Agent
|
| 14 |
|
| 15 |
+
AI-powered data analysis assistant that generates and executes Python code to analyze data and create visualizations.
|
| 16 |
+
|
| 17 |
+
[](https://davidleocadio94dlai-data-analyzer-agent.hf.space)
|
| 18 |
|
| 19 |
## Features
|
| 20 |
+
|
| 21 |
+
- **AI-Powered Analysis** β Describe what you want in natural language, get executable Python code and results
|
| 22 |
+
- **Secure Code Execution** β E2B sandbox isolates code execution for safe, reliable operation
|
| 23 |
+
- **Data Visualizations** β Generate matplotlib and seaborn charts displayed directly in chat
|
| 24 |
+
- **Statistical Analysis** β Compute distributions, correlations, descriptive statistics, and more
|
| 25 |
+
|
| 26 |
+
## Tech Stack
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+

|
| 30 |
+

|
| 31 |
+

|
| 32 |
+

|
| 33 |
+
|
| 34 |
+
- **AI Model:** OpenAI GPT-4
|
| 35 |
+
- **Code Execution:** E2B Code Interpreter
|
| 36 |
+
- **Interface:** Gradio
|
| 37 |
+
- **Deployment:** HuggingFace Spaces
|
| 38 |
+
|
| 39 |
+
## Getting Started
|
| 40 |
+
|
| 41 |
+
### Local Development
|
| 42 |
+
|
| 43 |
+
```bash
|
| 44 |
+
# Clone the repository
|
| 45 |
+
git clone https://github.com/davidleocadio94/data-analyzer-agent.git
|
| 46 |
+
cd data-analyzer-agent
|
| 47 |
+
|
| 48 |
+
# Install dependencies
|
| 49 |
+
pip install -r requirements.txt
|
| 50 |
+
|
| 51 |
+
# Set up environment variables
|
| 52 |
+
export OPENAI_API_KEY=your-openai-key
|
| 53 |
+
export E2B_API_KEY=your-e2b-key
|
| 54 |
+
|
| 55 |
+
# Run the application
|
| 56 |
+
python app.py
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
Visit `http://localhost:7860` to use the chat interface.
|
| 60 |
+
|
| 61 |
+
## Example Queries
|
| 62 |
+
|
| 63 |
+
Try these prompts to explore the agent's capabilities:
|
| 64 |
+
|
| 65 |
+
- *"Generate 100 random numbers from a normal distribution and plot a histogram"*
|
| 66 |
+
- *"Calculate the mean, median, and standard deviation of [23, 45, 67, 89, 12, 34, 56]"*
|
| 67 |
+
- *"Create a scatter plot showing the relationship between x and y where y = 2x + noise"*
|
| 68 |
+
- *"Analyze the correlation between two random variables and visualize it"*
|
| 69 |
+
|
| 70 |
+
## Project Structure
|
| 71 |
+
|
| 72 |
+
```
|
| 73 |
+
data-analyzer-agent/
|
| 74 |
+
βββ app.py # Gradio chat interface
|
| 75 |
+
βββ src/
|
| 76 |
+
β βββ agent.py # OpenAI agent with tool execution
|
| 77 |
+
β βββ tools.py # E2B code interpreter tool
|
| 78 |
+
βββ requirements.txt # Python dependencies
|
| 79 |
+
βββ README.md
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
---
|
| 83 |
+
|
| 84 |
+
Built as part of [DeepLearning.AI](https://www.deeplearning.ai/) coursework
|