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>

Files changed (1) hide show
  1. README.md +68 -17
README.md CHANGED
@@ -12,22 +12,73 @@ pinned: false
12
 
13
  # Data Analyzer Agent
14
 
15
- AI-powered data analysis assistant using E2B Code Interpreter sandbox.
 
 
16
 
17
  ## Features
18
- - Generate Python code for data analysis
19
- - Create visualizations (matplotlib, seaborn)
20
- - Perform statistical analysis
21
- - Execute code securely in E2B sandbox
22
-
23
- ## Setup
24
- Requires environment variables:
25
- - `OPENAI_API_KEY`: OpenAI API key for GPT-4
26
- - `E2B_API_KEY`: E2B API key for code execution sandbox
27
-
28
- ## Usage
29
- 1. Ask a data analysis question
30
- 2. Agent generates and executes Python code
31
- 3. View results and visualizations in chat
32
-
33
- Built with OpenAI GPT-4, E2B Code Interpreter, and Gradio.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ [![Live Demo](https://img.shields.io/badge/Live%20Demo-Try%20It-blue?style=for-the-badge&logo=huggingface)](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
+ ![Gradio](https://img.shields.io/badge/Gradio-FF7C00?style=flat&logo=gradio&logoColor=white)
29
+ ![OpenAI](https://img.shields.io/badge/OpenAI-412991?style=flat&logo=openai&logoColor=white)
30
+ ![E2B](https://img.shields.io/badge/E2B-000000?style=flat&logo=e2b&logoColor=white)
31
+ ![Python](https://img.shields.io/badge/Python-3776AB?style=flat&logo=python&logoColor=white)
32
+ ![HuggingFace](https://img.shields.io/badge/HuggingFace-FFD21E?style=flat&logo=huggingface&logoColor=black)
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