CoolFace
Apppublic

AKKI-AFK/ECL-Risk-Analyzer

sourceHugging Faceupdated 11mo agoView on Hugging Face
0likes
App README

๐Ÿงฎ ECL Risk Analyzer

ECL Risk Analyzer is a Streamlit-based web app that automates Expected Credit Loss (ECL) analysis and provides AI-driven recommendations on credit decisions.

๐Ÿ” Features

  • โ€”Upload loan datasets (CSV format).
  • โ€”Compute key credit metrics:
  • โ€”PD โ€“ Probability of Default
  • โ€”LGD โ€“ Loss Given Default
  • โ€”EAD โ€“ Exposure at Default
  • โ€”ECL โ€“ Expected Credit Loss
  • โ€”Visualize segment-level performance with interactive charts.
  • โ€”Get AI recommendations (via Gemini 2.5 Flash Lite) to:
  • โ€”Increase interest
  • โ€”Reduce disbursement
  • โ€”Maintain current policy
  • โ€”Role-based access:
  • โ€”Analyst: Run and review segment analyses.
  • โ€”CRO: Audit all analyst reports and view trends.

๐Ÿง  Tech Stack

  • โ€”Frontend: Streamlit
  • โ€”AI Engine: Gemini API
  • โ€”Database: SQLite (via SQLAlchemy)
  • โ€”Hosting: Hugging Face Spaces (Docker SDK)

๐Ÿš€ Quick Start

  1. 1.Upload your loan dataset (CSV).
  2. 2.Select a segmentation column (e.g., loan intent, area, or occupation).
  3. 3.View computed ECL metrics and charts.
  4. 4.Choose a segment to get AI-based recommendations.

๐Ÿ“Š Example Output

SegmentPDLGDEADECLAction
Medical0.2780.25578M5.5MIncrease Interest

๐Ÿ› ๏ธ Customization

Modify /src/streamlit_app.py to:

  • โ€”Adjust prompts or logic.
  • โ€”Change chart styles.
  • โ€”Extend user roles or security.