An open API service indexing awesome lists of open source software.

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.

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 Locally

1. **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/Linux

3.Install Dependencies:
pip install -r requirements.txt

4.Set Google API Key:
Create a .env file in the root folder and add:
GOOGLE_API_KEY=your_actual_key_here

5.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!