File size: 2,520 Bytes
d7e5fd4
 
 
 
3d25aea
d7e5fd4
 
 
 
 
 
 
262819f
d7e5fd4
262819f
d7e5fd4
262819f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
title: PRISM 2.0
emoji: πŸš€
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
---

# PRISM 2.0 - Advanced AI Content Analysis

[![Live Demo](https://img.shields.io/badge/Hugging%20Face-Live%20Demo-blue)](https://devranx-prism2-0.hf.space/)

Prism is a state-of-the-art AI application designed for deep content analysis of images and documents. It leverages advanced multi-modal models to ensure content compliance, safety, and quality control.

## 🌟 Features

### πŸ” Advanced Visual Analysis
- **Ribbon & Layout Detection**: precision detection of visual elements.
- **Image Quality Assessment**: Checks for blur, resolution, and pixel variance.
- **GNC (General Non-Compliance) Checks**: Identifies unauthorized visual gestures or icons.

### πŸ“ Text & Content Intelligence
- **Tagline Verification**: content and legibility analysis.
- **Risk Assessment**: Detects high-risk content, gambling references, and illegal activities.
- **Competitor Analysis**: Identifies competitor brand mentions.
- **Sensitive Content Shield**: Filters inappropriate, religious, or violent imagery.

### ⚑ Powerful Capabilities
- **Single & Batch Processing**: Analyze one image or thousands at once.
- **Interactive Reports**: Detailed breakdown of passes, fails, and specific issues.
- **High-Performance Backbone**: Powered by **InternVL2.5-1B-MPO** for vision-language understanding and **EasyOCR** for robust text extraction.

## πŸš€ Live Demo
Experience Prism 2.0 live on Hugging Face Spaces:
πŸ‘‰ **[https://devranx-prism2-0.hf.space/](https://devranx-prism2-0.hf.space/)**

## πŸ› οΈ Tech Stack
- **Frontend**: React (Vite) with a premium, responsive UI.
- **Backend**: Flask (Python) for API handling and orchestration.
- **AI Models**: 
    - `InternVL2.5-1B-MPO` (Vision Language Model)
    - `EasyOCR` (Optical Character Recognition)
    - `CLIP` (Semantic Understanding)
- **Deployment**: Dockerized for seamless scalability.

## πŸ“¦ Installation (Local)

1. **Clone the repository**
   ```bash
   git clone https://github.com/devsingh02/PRISM.git
   cd PRISM
   ```

2. **Set up Python Environment**
   ```bash
   python -m venv .venv
   source .venv/bin/activate  # On Windows: .venv\Scripts\activate
   pip install -r requirements.txt
   ```

3. **Run the Application**
   ```bash
   python app.py
   ```
   The app will run at `http://localhost:7860`.

## 🐳 Docker Support
Prism is fully containerized.
```bash
docker build -t prism-app .
docker run -p 7860:7860 prism-app
```