https://github.com/chinmayeegithubid/carbon-footprint-calculator
A Streamlit-based AI-powered Carbon Footprint Calculator that estimates annual CO₂ emissions based on transportation, electricity, diet, and waste inputs. Includes visual charts, personalized eco tips using Gemini AI, and real-time climate insights.
https://github.com/chinmayeegithubid/carbon-footprint-calculator
ai carbon-footprint carbon-footprint-calculator climate generative-ai google-gemini html-css-javascript imagesegmentation machine-learning python-3 streamlit sustainability
Last synced: 4 months ago
JSON representation
A Streamlit-based AI-powered Carbon Footprint Calculator that estimates annual CO₂ emissions based on transportation, electricity, diet, and waste inputs. Includes visual charts, personalized eco tips using Gemini AI, and real-time climate insights.
- Host: GitHub
- URL: https://github.com/chinmayeegithubid/carbon-footprint-calculator
- Owner: chinmayeegithubid
- Created: 2025-05-24T22:08:49.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-05-24T23:01:42.000Z (4 months ago)
- Last Synced: 2025-05-24T23:47:25.615Z (4 months ago)
- Topics: ai, carbon-footprint, carbon-footprint-calculator, climate, generative-ai, google-gemini, html-css-javascript, imagesegmentation, machine-learning, python-3, streamlit, sustainability
- Language: Python
- Homepage: https://carbon-app.streamlit.app
- Size: 2.07 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌿 AI-Powered Carbon Footprint Calculator
A **Streamlit-based web application** that calculates your annual carbon footprint based on your lifestyle habits — including transportation, electricity use, dietary preferences, and household waste. Built with **Google Gemini AI** integration for smart eco tips and real-time climate insights.
[🌐 Live Demo → Click to try the app](https://carbon-app.streamlit.app)
## 💡 What This App Does
🔍 **Estimate your CO₂ emissions** across key areas:
- 🚗 **Transportation**: Based on daily commute distance
- 💡 **Electricity**: Based on average kWh usage
- 🍽️ **Diet**: Type of meals and frequency
- 🗑️ **Waste**: Approximate household waste levels
📊 **Visual Insights:**
- Pie charts for emissions by category
- Tree equivalence (how many trees needed to offset)
- Gemini AI-powered personalized sustainability suggestions
🌦️ **Extra Features:**
- Real-time climate change data
- Downloadable emission reports
- Built-in Gemini chatbot for eco-advice
---
## 🛠️ Tech Stack| Component | Technology |
|----------------|------------------------|
| Frontend | Streamlit |
| AI Integration | Google Gemini via `generativeai` |
| ML Model | `MLPRegressor` (Scikit-learn) |
| Data Handling | CSV, Pandas, Matplotlib |
| Styling | Custom CSS & HTML |
---
## 🚀 How to Run Locally1. **Clone the Repository**
```bash
git clone https://github.com/chinmayeegithubid/carbon-footprint-calculator.git
cd carbon-footprint-calculator
2. **Create & Activate Virtual Environment**
```bash
python -m venv venv
venv\Scripts\activate # For Windows
source venv/bin/activate # For Mac/Linux3.Install Dependencies:
pip install -r requirements.txt4.Set Google API Key:
Create a .env file in the root folder and add:
GOOGLE_API_KEY=your_actual_key_here5.Run the App
streamlit run app.py
## 🌟 Stay in Touch
Thank you for exploring this project! 🌱
This AI-powered Carbon Footprint Calculator is part of my personal initiative to use technology for a greener future.
I’d love to hear your feedback or collaborate on ideas to make this tool even better.📬 **Connect with me on LinkedIn:** [Chinmayee Nayak](https://www.linkedin.com/in/chinmayee-n-134388187/)
📢 If you found this helpful, feel free to share it or support the project!