# anay-alai/waste_reuse_assistant_lenonoleap_capstone architecture

> Architecture diagram of the GitHub repository anay-alai/waste_reuse_assistant_lenonoleap_capstone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone
- Repository: https://github.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone

## Overview

This is a small Streamlit waste-reuse assistant. A user uploads an image and selects Analyze Waste; the app sends the image with a structured prompt to Gemini and displays its recommendations. The only source file is excerpted, so the calls and UI flow shown here are directly supported; no separate storage or processing subsystem is evident.

Main entry points: [`app.py`](https://github.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone/blob/main/app.py) (Assistant app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Streamlit interface"]
  node_app["Assistant app<br/>[app.py]"]
  node_image["Uploaded image<br/>[app.py]"]
end

subgraph group_analysis["Waste analysis"]
  node_gemini{{"Gemini API"}}
  node_recommendations["Waste recommendations<br/>[app.py]"]
end

node_user(("User"))

node_user -->|"uploads image"| node_app
node_app -->|"opens image"| node_image
node_app -->|"sends prompt and image"| node_gemini
node_gemini -->|"returns analysis"| node_app
node_app -->|"displays results"| node_recommendations
node_app -->|"shows results"| node_user

click node_app "https://github.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone/blob/main/app.py"
click node_image "https://github.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone/blob/main/app.py"
click node_recommendations "https://github.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone/blob/main/app.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_image,node_user toneBlue
class node_gemini,node_recommendations toneAmber
```

## Components

### Streamlit interface

- [Assistant app](https://github.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone/blob/main/app.py): `app.py`
- [Uploaded image](https://github.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone/blob/main/app.py): `app.py`

### Waste analysis

- **Gemini API**
- [Waste recommendations](https://github.com/anay-alai/waste_reuse_assistant_lenonoleap_capstone/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Assistant app: uploads image (evidence: `app.py`)
- Assistant app → Uploaded image: opens image (evidence: `app.py`)
- Assistant app → Gemini API: sends prompt and image (evidence: `app.py`)
- Gemini API → Assistant app: returns analysis (evidence: `app.py`)
- Assistant app → Waste recommendations: displays results (evidence: `app.py`)
- Assistant app → User: shows results (evidence: `app.py`)
