Downloads · 30 days
0
Asyagul1993/PakEco
PakEco is a machine learning model from Asyagul1993. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
PakEco AI is a hackathon-ready environmental application with two frontends and a shared Python backend:
Downloads · 30 days
0
Access
Public
Updated Sep 12, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md11.8 KB · 46%
From the Hugging Face model README
PakEco AI is a hackathon-ready environmental application with two frontends and a shared Python backend:
gradio_app.pystreamlit_app.pybackend.pyGradio is used as the interactive AI/demo frontend, while Streamlit provides the richer dashboard experience.
┌─────────────────────┐
│ User / Browser │
└──────────┬──────────┘
│
┌──────────┴──────────┐
│ │
Gradio Frontend Streamlit Dashboard
gradio_app.py streamlit_app.py
│ │
└──────────┬──────────┘
│
backend.py
│
┌──────────────┼──────────────┐
│ │ │
Open-Meteo Open-Meteo Gemini API
Air Quality Weather AI
Open-Meteo Air Quality API: https://open-meteo.com/en/docs/air-quality-api
Open-Meteo Weather API: https://open-meteo.com/en/docs
Gemini API: https://ai.google.dev/gemini-api/docs
The air-quality API documents PM2.5, PM10, European AQI and US AQI variables and explains that the forecast is based on CAMS atmospheric-composition forecast data.
The pollution values are model-based and tied to selected coordinates. They should not be described as official ground-monitoring station measurements.
Python 3.10+ is recommended because current Gradio documentation requires Python 3.10 or higher.
python -m venv .venv
Windows:
.venv\Scripts\activate
macOS/Linux:
source .venv/bin/activate
Install:
pip install -r requirements.txt
Get a key from Google AI Studio.
Windows PowerShell:
$env:GEMINI_API_KEY="YOUR_KEY"
macOS/Linux:
export GEMINI_API_KEY="YOUR_KEY"
Never upload the key to GitHub.
python gradio_app.py
Gradio normally opens a local web interface.
Open another terminal in the same folder:
streamlit run streamlit_app.py
Upload these files:
PakEco-AI/
├── backend.py
├── gradio_app.py
├── streamlit_app.py
├── requirements.txt
├── README.md
├── PRD.md
├── DEMO_SCRIPT.md
├── .gitignore
├── .env.example
├── project.json
└── data/
└── sample_data.csv
Do NOT upload .env, API keys, or secrets.toml.
streamlit_app.py.GEMINI_API_KEY = "YOUR_REAL_KEY"
For the Gradio frontend, the easiest portfolio/hackathon hosting route is a Hugging Face Space using the Gradio SDK.
Upload:
backend.py
gradio_app.py
requirements.txt
README.md
If the platform expects app.py, either rename gradio_app.py to app.py or configure the entry point according to the host's current instructions.
Add GEMINI_API_KEY as a secret/environment variable in the hosting platform.
Recommended submission package:
PakEco AI:
Follow the current Open-Meteo attribution requirements when publishing the application or redistributing its data. See the Open-Meteo documentation for current CAMS/Open-Meteo acknowledgement language.