# jadasma/smart-report-automation architecture

> Architecture diagram of the GitHub repository jadasma/smart-report-automation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jadasma/smart-report-automation
- Repository: https://github.com/jadasma/smart-report-automation

## Overview

Smart Report Generator turns news articles or PDF reports into timestamped summaries. The documented workflow is to run the automation, extract text from either input type, summarize it with the local Hugging Face BART model, and save a report. The README also names example news sites and the output folder. The tree contains only README.md, so implementation paths and internal call ownership cannot be verified; nodes without supported source paths are left null.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Input Sources"]
  node_news["News Websites"]
  node_pdf["PDF Reports"]
end

subgraph group_processing["Report Processing"]
  node_automation["Automation Script"]
  node_web_extract["Article Scraping"]
  node_pdf_extract["PDF Text Extraction"]
  node_bart["BART Summarization"]
end

subgraph group_output["Report Output"]
  node_reports["Timestamped Reports"]
end

node_user(("User"))
node_model["Hugging Face BART"]

node_user -->|"runs"| node_automation
node_automation -->|"scrapes"| node_web_extract
node_news -->|"provides articles"| node_web_extract
node_automation -->|"extracts text"| node_pdf_extract
node_pdf -->|"provides document"| node_pdf_extract
node_automation -->|"summarizes text"| node_bart
node_bart -->|"uses model"| node_model
node_automation -->|"saves summaries"| node_reports

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_news,node_pdf,node_user toneBlue
class node_automation,node_web_extract,node_pdf_extract,node_bart toneAmber
class node_reports toneMint
class node_model toneIndigo
```

## Components

### Input Sources

- **News Websites**
- **PDF Reports**

### Report Processing

- **Automation Script**
- **Article Scraping**
- **PDF Text Extraction**
- **BART Summarization**

### Report Output

- **Timestamped Reports**

### Other components

- **User**
- **Hugging Face BART**

## Connections

- User → Automation Script: runs
- Automation Script → Article Scraping: scrapes
- News Websites → Article Scraping: provides articles
- Automation Script → PDF Text Extraction: extracts text
- PDF Reports → PDF Text Extraction: provides document
- Automation Script → BART Summarization: summarizes text
- BART Summarization → Hugging Face BART: uses model
- Automation Script → Timestamped Reports: saves summaries
