lightmate commited on
Commit
41e76ea
ยท
verified ยท
1 Parent(s): 9b50d9f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +239 -77
README.md CHANGED
@@ -1,114 +1,276 @@
1
  ---
2
- title: DGaze News Verification
3
  emoji: ๐Ÿ”
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
- sdk_version: 5.33.0
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
- short_description: AI-powered news verification system with free demo
 
 
 
12
  ---
13
 
14
- # DGaze - Advanced News Verification System
15
 
16
- An advanced AI-powered news verification system with authentication that helps identify potentially misleading or false information.
17
 
18
- ## Features
19
 
20
- - **๐Ÿ” Authentication**: Secure Auth0 integration with trial and full access modes
21
- - **๐Ÿ†“ Free Trial**: 2 free verifications for unauthenticated users
22
- - **๐Ÿ” Real-time Analysis**: Instant verification of news articles and URLs
23
- - **๐Ÿ“Š Credibility Scoring**: Detailed credibility scores for news content
24
- - **๐ŸŒ Source Verification**: Check the reliability of news sources
25
- - **๐Ÿ“ฑ Multiple Interfaces**: Trial, login, and authenticated user interfaces
26
- - **๐ŸŽจ Beautiful UI**: Professional gradient design with responsive layout
27
 
28
- ## How to Use
29
 
30
- ### Free Trial (No Login Required)
31
- 1. Visit the **trial interface** at `/trial`
32
- 2. **Paste news text** or **URL** in the input box
33
- 3. **Click "Verify News"** to analyze the content
34
- 4. **Get detailed results** including credibility score and analysis
35
- 5. Enjoy **2 free verifications** per session
36
 
37
- ### Full Access (With Login)
38
- 1. **Click "Sign In"** to authenticate via Auth0
39
- 2. Get **unlimited verifications**
40
- 3. Access to **premium features**
41
- 4. **Session persistence** across visits
42
 
43
- ## Configuration
44
 
45
- This Space requires the following environment variables to be set in the Space settings:
46
 
47
- ### Required Environment Variables
48
 
49
- ```bash
50
- # Backend API Configuration (REQUIRED)
51
- API_BASE_URL=your-backend-api-url
52
 
53
- # Auth0 Configuration (REQUIRED for authentication)
54
- AUTH0_DOMAIN=your-auth0-domain
55
- AUTH0_CLIENT_ID=your-auth0-client-id
56
- AUTH0_CLIENT_SECRET=your-auth0-client-secret
57
- AUTH0_AUDIENCE=your-auth0-audience
58
 
59
- # Security
60
- SECRET_KEY=your-session-secret-key
 
61
 
62
- # Optional: App Configuration
63
- GRADIO_SERVER_NAME=0.0.0.0
64
- GRADIO_SERVER_PORT=7860
65
- DEBUG=false
66
- ```
67
 
68
- ### Setting Environment Variables
69
- 1. Go to your **Space Settings**
70
- 2. Find **"Repository secrets"** or **"Variables and secrets"**
71
- 3. Add each variable with **"Private"** visibility for sensitive data
72
- 4. **Restart the Space** after adding variables
 
73
 
74
- ## Try the Examples
75
 
76
- We've included sample news articles to demonstrate the verification capabilities:
77
- - Suspicious breakthrough claims with questionable sources
78
- - Real news with proper sourcing and verification
79
 
80
- ## Architecture
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
 
82
- This application uses:
83
- - **FastAPI**: Backend API framework with Auth0 integration
84
- - **Gradio**: Interactive web interface with multiple mounted apps
85
- - **Auth0**: Secure authentication and user management
86
- - **Session Management**: Trial tracking and user state management
87
- - **Modular Design**: Clean separation of concerns with api/, config/, and components/ modules
88
 
89
- ## API Integration
 
 
 
90
 
91
- The app connects to a backend API for news verification. Make sure your backend API supports:
92
- - `POST /api/verify` - Main verification endpoint
93
- - `GET /api/health` - Health check endpoint
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
- ## Local Development
 
 
 
 
 
 
 
 
96
 
97
- To run locally:
98
- 1. Clone this repository
99
- 2. Install dependencies: `pip install -r requirements.txt`
100
- 3. Set up your `.env` file with the required variables
101
- 4. Run: `python app.py`
102
- 5. Access at `http://localhost:3000`
103
 
104
- ## Built With
105
 
106
- - **Gradio**: Interactive web interface
107
- - **FastAPI**: Modern, fast web framework
108
- - **Auth0**: Authentication platform
109
- - **Python**: Backend processing
110
- - **Hugging Face Spaces**: Hosting platform
 
 
 
 
111
 
112
  ---
113
 
114
- *Built with โค๏ธ for fighting misinformation and promoting media literacy*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: DGaze - AI Truth Verification Tool
3
  emoji: ๐Ÿ”
4
  colorFrom: blue
5
  colorTo: purple
6
  sdk: gradio
7
+ sdk_version: 5.33.1
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
+ description: >
12
+ DGaze is a real-time AI truth verification tool that analyzes claims, quotes, or short paragraphs and returns a score, explanation, and evidence-backed sources (all in around 30sec). Powered by DeBERTa-v3, FAISS vector search, and advanced NLP models for comprehensive fact-checking.
13
+ tags:
14
+ - agent-demo-track
15
  ---
16
 
17
+ # ๐Ÿ” DGaze - AI Truth Verification Tool
18
 
19
+ **Introducing DGaze** โ€“ a real-time AI truth verification tool that analyzes claims, quotes, or short paragraphs and returns a score, explanation, and evidence-backed sources (all in around 30sec).
20
 
21
+ ## ๐ŸŽฅ Video Overview
22
 
23
+ > **[๐Ÿ“บ Watch Demo Video](https://youtu.be/ZiQPsIiabfo)**
24
+ >
25
+ > _Click above to see DGaze in action! The video demonstrates the complete verification workflow from input to results._
 
 
 
 
26
 
 
27
 
28
+ ![DGaze Screenshot](https://cdn-uploads.huggingface.co/production/uploads/65964c7ceed0e88dfd4b628f/3K8lt2f7-CyN_ffWLAuqo.png)
 
 
 
 
 
29
 
30
+ # ๐Ÿ” DGaze - AI Truth Verification Tool
 
 
 
 
31
 
32
+ **Introducing DGaze** โ€“ a real-time AI truth verification tool that analyzes claims, quotes, or short paragraphs and returns a score, explanation, and evidence-backed sources (all in around 30sec).
33
 
34
+ ## ๐ŸŽฏ **The Problem We Solve**
35
 
36
+ In today's information-rich world, **misinformation spreads faster than facts**. Whether it's viral social media posts, breaking news claims, or suspicious articles, people need a quick, reliable way to verify what's true and what's not.
37
 
38
+ **DGaze solves this by providing instant, AI-powered fact verification** that cuts through the noise and delivers trustworthy results.
 
 
39
 
40
+ ## ๐Ÿ“ฅ **What We Accept as Input**
 
 
 
 
41
 
42
+ - **Text Claims** - Paste any statement, quote, or paragraph you want to verify
43
+ - **URLs** - Submit links to articles, posts, or web content for comprehensive analysis
44
+ - **Mixed Content** - Combine text and URLs for thorough cross-verification
45
 
46
+ ## ๐Ÿ“Š **What You Get as Output**
 
 
 
 
47
 
48
+ - **Overall Truthfulness Score** - Clear verdict (SUPPORTED, CONTRADICTED, or NEUTRAL) with confidence percentage
49
+ - **Individual Claim Analysis** - Each statement broken down with its own confidence rating
50
+ - **Real-time Evidence Sources** - Live links to supporting or contradicting materials
51
+ - **Brief Analysis** - Quick summaries for fast understanding
52
+ - **Detailed Evidence** - In-depth breakdowns with source credibility scores
53
+ - **Visual Results** - Color-coded, easy-to-understand interface with progress tracking
54
 
55
+ ## โšก **Powered by Modal Labs Infrastructure**
56
 
57
+ **All AI models and backend operations are hosted on Modal Labs' high-performance GPU infrastructure**, ensuring lightning-fast processing and 99.9% uptime reliability. This cloud-native approach means no setup required - just open and start fact-checking!
 
 
58
 
59
+ ---
60
+
61
+ ### Example Usage Flow:
62
+
63
+ 1. **Input**: Paste a news claim or statement
64
+ 2. **Processing**: AI analyzes content with real-time progress tracking
65
+ 3. **Results**: Get truthfulness scores, evidence sources, and detailed analysis
66
+ 4. **Insights**: Review individual claim breakdowns with confidence scores
67
+
68
+ ---
69
+
70
+ ## ๐Ÿš€ What Makes DGaze Special?
71
+
72
+ ### โšก **Lightning Fast Analysis**
73
+
74
+ - Complete fact-checking in **under 30 seconds**
75
+ - Real-time progress tracking with beautiful animated progress bars
76
+ - Instant results with detailed confidence scores
77
+
78
+ ### ๐Ÿง  **AI-Powered Intelligence**
79
+
80
+ - **Sentence Transformers** - Advanced semantic understanding to break down complex statements
81
+ - **Fine-tuned DeBERTa-v3 Classifier** - Specialized FEVER model for fact alignment with 77.7% accuracy
82
+ - **FAISS Vector Search** - Lightning-fast evidence retrieval from massive databases
83
+ - **Real-time Online Search** - Live web search for the most current, relevant information claim-by-claim
84
+ - **FIRE Framework Integration** - Iterative, LLM-guided verification with intelligent web search
85
+ - **Modal Labs Hosted Backend** - All AI models and most backend operations run on Modal Labs' high-performance GPU infrastructure
86
+
87
+ ### ๐ŸŽฏ **Comprehensive Verification**
88
+
89
+ - **Overall Truthfulness Score** - Clear verdict: SUPPORTED, CONTRADICTED, or NEUTRAL
90
+ - **Individual Claim Analysis** - Each statement gets its own confidence rating with detailed scoring
91
+ - **Real-time Evidence Sources** - Live web search provides current, relevant sources with direct links
92
+ - **Brief Analysis & Detailed Evidence** - Quick summaries plus in-depth evidence breakdowns
93
+ - **Confidence Scores** - Precise probability ratings for each claim and overall assessment
94
+ - **Visual Indicators** - Color-coded results with intuitive emoji feedback
95
+
96
+ ---
97
+
98
+ ## โœจ Key Features Demo
99
+
100
+ ### ๐Ÿ“Š **Smart Analysis Dashboard**
101
+
102
+ DGaze doesn't just give you a simple true/false answer. You get:
103
+
104
+ - **Overall Assessment**: Clear verdict with confidence percentage
105
+ - **Claim Breakdown**: Individual analysis of each statement
106
+ - **Evidence Quality**: Ranked sources with reliability indicators
107
+ - **Interactive Results**: Click-through to original sources
108
+
109
+ ### ๐ŸŒ **Multi-Source Verification**
110
+
111
+ - **Real-time Online Search** - Live web search for the most current information on each claim
112
+ - **Cross-references** claims against reliable news sources and databases
113
+ - **Academic and Scientific Sources** - Research papers and authoritative publications
114
+ - **Brief Analysis & Detailed Evidence** - Quick summaries with comprehensive evidence breakdowns
115
+ - **Source Credibility Scoring** - Confidence ratings and reliability rankings for each source
116
 
117
+ ### ๐ŸŽจ **Beautiful User Experience**
 
 
 
 
 
118
 
119
+ - **Modern Interface**: Clean, gradient design that's easy on the eyes
120
+ - **Progress Tracking**: Watch your verification happen in real-time
121
+ - **Responsive Design**: Works perfectly on desktop and mobile
122
+ - **No Registration**: Start verifying immediately with 5 free trials
123
 
124
+ ---
125
+
126
+ ## ๐ŸŽฏ Perfect For These Use Cases
127
+
128
+ ### ๐Ÿ“ฐ **News & Media**
129
+
130
+ - **Social Media Posts**: Verify viral claims before sharing
131
+ - **Breaking News**: Quick fact-check of developing stories
132
+ - **Article Verification**: Cross-reference news reports with multiple sources
133
+
134
+ ### ๐Ÿซ **Education & Research**
135
+
136
+ - **Student Projects**: Verify research claims and statistics
137
+ - **Academic Writing**: Fact-check citations and references
138
+ - **Teaching Tool**: Help students develop critical thinking skills
139
+
140
+ ### ๐Ÿ’ผ **Business & Professional**
141
+
142
+ - **Market Research**: Verify industry claims and statistics
143
+ - **Due Diligence**: Fact-check business information
144
+ - **Content Creation**: Ensure accuracy in marketing materials
145
+
146
+ ### ๐Ÿ›๏ธ **Civic & Policy**
147
+
148
+ - **Political Claims**: Verify statements from public figures
149
+ - **Policy Analysis**: Check facts behind policy proposals
150
+ - **Public Information**: Validate government and institutional claims
151
 
152
+ ---
153
+
154
+ ## ๐Ÿ”ฌ How DGaze Works (Behind the Scenes)
155
+
156
+ ### Step 1: **Smart Text Processing**
157
+
158
+ **Sentence Transformers** analyze your input and break it down into individual, verifiable claims
159
+
160
+ ### Step 2: **Evidence Gathering**
161
 
162
+ **FAISS vector search** rapidly retrieves relevant evidence from massive databases while **real-time online search** finds the latest information claim-by-claim, guided by the **FIRE framework** for intelligent web searches
 
 
 
 
 
163
 
164
+ ### Step 3: **Intelligent Matching**
165
 
166
+ **Fine-tuned DeBERTa-v3 classifier** matches each claim with supporting or contradicting evidence using advanced fact alignment
167
+
168
+ ### Step 4: **Confidence Scoring**
169
+
170
+ **Modal Labs hosted AI models** calculate truthfulness probabilities with high-performance GPU processing handling most backend operations
171
+
172
+ ### Step 5: **Beautiful Results**
173
+
174
+ **Gradio frontend** presents everything in an easy-to-understand, interactive format
175
 
176
  ---
177
 
178
+ ## ๐Ÿ“ˆ Performance & Accuracy
179
+
180
+ ### ๐ŸŽฏ **Accuracy Metrics**
181
+
182
+ - **77.7% accuracy** on standard fact-checking benchmarks
183
+ - **Well-calibrated confidence scores** - when we say 90%, we mean it
184
+ - **Multi-claim handling** - processes up to 5 claims simultaneously
185
+
186
+ ### โšก **Speed Benchmarks**
187
+
188
+ - **Average processing time**: 30 seconds
189
+ - **Individual claim analysis**: 1.5 seconds each
190
+ - **Evidence retrieval**: 15 seconds for comprehensive search
191
+ - **UI response time**: Under 100ms
192
+
193
+ ---
194
+
195
+ ## ๐ŸŒŸ Try DGaze Now!
196
+
197
+ ### ๐Ÿ†“ **Free Demo Access**
198
+
199
+ - **5 free verifications** per session
200
+ - **No registration required**
201
+ - **Full feature access**
202
+ - **Instant results**
203
+
204
+ ### ๐Ÿ“ฑ **Easy to Use**
205
+
206
+ 1. Paste your text into the input box
207
+ 2. Click "Verify News" and watch the magic happen
208
+ 3. Get detailed results with confidence scores
209
+ 4. Click through to original sources for more information
210
+
211
+ ### ๐ŸŽจ **Beautiful Interface**
212
+
213
+ - Smooth animations and progress tracking
214
+ - Color-coded results for quick understanding
215
+ - Mobile-friendly responsive design
216
+ - Professional, modern aesthetic
217
+
218
+ ---
219
+
220
+ ## ๐Ÿš€ Future Vision
221
+
222
+ ### ๐Ÿ”ฎ **Coming Soon**
223
+
224
+ - **Multi-language support** for global fact-checking
225
+ - **Browser extension** for one-click verification
226
+ - **Batch processing** for multiple claims at once
227
+ - **Enhanced source quality scoring**
228
+
229
+ ### ๐ŸŒ **Long-term Goals**
230
+
231
+ - **Real-time news monitoring** and automatic alerts
232
+ - **Educational partnerships** for media literacy
233
+ - **API access** for developers and organizations
234
+ - **Advanced analytics** and reporting features
235
+
236
+ ---
237
+
238
+ ## ๐Ÿ† Why Choose DGaze?
239
+
240
+ ### โœ… **Reliable**
241
+
242
+ Built on state-of-the-art AI models with proven accuracy
243
+
244
+ ### โœ… **Fast**
245
+
246
+ Get comprehensive results in under 30 seconds
247
+
248
+ ### โœ… **Transparent**
249
+
250
+ See exactly how we reach our conclusions with source links
251
+
252
+ ### โœ… **User-Friendly**
253
+
254
+ No technical knowledge required - anyone can use it
255
+
256
+ ### โœ… **Comprehensive**
257
+
258
+ Goes beyond simple true/false to give you the full picture
259
+
260
+ ---
261
+
262
+ **๐Ÿ” Ready to verify the truth? Try DGaze now - No setup required, just open and start fact-checking!**
263
+
264
+ ## โš™๏ธ **Powered by Advanced Technology**
265
+
266
+ **Backend inference runs on Modal Labs** for scalable, high-performance AI processing with **Gradio** providing the interactive frontend โ€“ no setup required, just open and try!
267
+
268
+ - **Sentence Transformers** for semantic understanding
269
+ - **Fine-tuned DeBERTa-v3 classifier** for fact alignment
270
+ - **FAISS vector search** for fast evidence retrieval
271
+ - **Real-time online search** for current, relevant information claim-by-claim with source analysis
272
+ - **Currently integrating the FIRE framework** for iterative, LLM-guided verification with web search when needed
273
+ - **Confidence scoring system** providing precise probability ratings for brief analysis and detailed evidence
274
+ - **All models hosted on Modal Labs' GPU infrastructure** handling most backend operations for maximum speed and reliability
275
+
276
+ _Experience the power of cutting-edge AI fact-checking technology โ€“ all running seamlessly in the cloud!_