MUFASA25 commited on
Commit
a9c3f34
Β·
verified Β·
1 Parent(s): 369574e

raise high level from 60% to 80%

Browse files
Files changed (1) hide show
  1. app.py +18 -11
app.py CHANGED
@@ -210,7 +210,7 @@ def advanced_predict_phishing(text):
210
  confidence = max_label[1]
211
 
212
  # Enhanced risk assessment
213
- if "Phishing" in prediction and confidence > 0.6:
214
  risk_level = "🚨 HIGH RISK - Strong Phishing Indicators"
215
  risk_color = "red"
216
  elif "Phishing" in prediction or risk_score > 0.5:
@@ -271,7 +271,7 @@ with gr.Blocks(
271
  ) as demo:
272
 
273
  gr.Markdown("""
274
- # πŸ›‘οΈ EmailGuard - Advanced AI Phishing Detection
275
  **Multi-Model Ensemble System with Feature Analysis**
276
 
277
  ✨ **Enhanced Accuracy** β€’ πŸ” **Deep Pattern Analysis** β€’ πŸš€ **Real-time Results**
@@ -307,11 +307,11 @@ with gr.Blocks(
307
 
308
  examples = [
309
  ["URGENT: Your PayPal account has been limited! Verify immediately at http://paypal-security-check.suspicious.com/verify or lose access forever!"],
310
- ["Hi Sarah, Thanks for sending the quarterly report. I've reviewed the numbers and they look good. Let's discuss in tomorrow's meeting. Best, Mike"],
311
- ["πŸŽ‰ CONGRATULATIONS! You've won $50,000! Click here to claim: bit.ly/winner123. Act fast, expires in 24hrs! Reply with SSN to confirm."],
312
  ["Your Microsoft Office subscription expires tomorrow. Renew now to avoid service interruption. Visit: https://office.microsoft.com/renew"],
313
  ["Dear Valued Customer, We detected unusual activity on your account. Please verify your identity by clicking the link below and entering your password."],
314
- ["Meeting reminder: Team standup at 10 AM in conference room A. Please bring your project updates. Thanks!"]
315
  ]
316
 
317
  gr.Examples(
@@ -342,18 +342,25 @@ with gr.Blocks(
342
  ---
343
  ### πŸ”¬ Advanced Detection Features
344
 
345
- **πŸ€– Multi-Model Ensemble:** Combines predictions from specialized models
 
346
  **🎯 Feature Engineering:** Hand-crafted rules for pattern detection
347
- **βš–οΈ Bias Reduction:** Multiple validation layers prevent false positives
348
- **πŸ“Š Risk Scoring:** Comprehensive analysis beyond simple classification
349
- **πŸ” URL Analysis:** Specialized detection for malicious links
350
- **πŸ“ Content Analysis:** Deep text pattern recognition
 
 
 
 
 
351
 
352
  ### ⚑ What Makes This More Accurate:
353
  - **Ensemble Learning:** Multiple models vote on final decision
354
  - **Feature Fusion:** AI + Rule-based detection combined
355
  - **Adaptive Thresholds:** Dynamic risk assessment
356
- - **Comprehensive Coverage:** Email, URL, and text message analysis
 
357
 
358
  **⚠️ Academic Research Tool:** For educational purposes - always verify through official channels.
359
  """)
 
210
  confidence = max_label[1]
211
 
212
  # Enhanced risk assessment
213
+ if "Phishing" in prediction and confidence > 0.8:
214
  risk_level = "🚨 HIGH RISK - Strong Phishing Indicators"
215
  risk_color = "red"
216
  elif "Phishing" in prediction or risk_score > 0.5:
 
271
  ) as demo:
272
 
273
  gr.Markdown("""
274
+ # πŸ›‘οΈ EmailGuard2 - Advanced AI Phishing Detection
275
  **Multi-Model Ensemble System with Feature Analysis**
276
 
277
  ✨ **Enhanced Accuracy** β€’ πŸ” **Deep Pattern Analysis** β€’ πŸš€ **Real-time Results**
 
307
 
308
  examples = [
309
  ["URGENT: Your PayPal account has been limited! Verify immediately at http://paypal-security-check.suspicious.com/verify or lose access forever!"],
310
+ ["Hi Mufasa, Thanks for sending the quarterly report. I've reviewed the numbers and they look good. Let's discuss in tomorrow's meeting. Best, Simba"],
311
+ ["πŸŽ‰ CONGRATULATIONS, Chinno! You've won $50,000! Click here to claim: bit.ly/winner123. Act fast, expires in 24hrs! Reply with SSN to confirm."],
312
  ["Your Microsoft Office subscription expires tomorrow. Renew now to avoid service interruption. Visit: https://office.microsoft.com/renew"],
313
  ["Dear Valued Customer, We detected unusual activity on your account. Please verify your identity by clicking the link below and entering your password."],
314
+ ["Meeting reminder: Team standup at 10 AM in conference room A, Y4C Hub. Please bring your project updates. Thanks!"]
315
  ]
316
 
317
  gr.Examples(
 
342
  ---
343
  ### πŸ”¬ Advanced Detection Features
344
 
345
+ **πŸ€– Multi-Model Ensemble:** Combines predictions from specialized models
346
+
347
  **🎯 Feature Engineering:** Hand-crafted rules for pattern detection
348
+
349
+ **βš–οΈ Bias Reduction:** Multiple validation layers prevent false positives
350
+
351
+ **πŸ“Š Risk Scoring:** Comprehensive analysis beyond simple classification
352
+
353
+ **πŸ” URL Analysis:** Specialized detection for malicious links
354
+
355
+ **πŸ“ Content Analysis:** Deep text pattern recognition
356
+
357
 
358
  ### ⚑ What Makes This More Accurate:
359
  - **Ensemble Learning:** Multiple models vote on final decision
360
  - **Feature Fusion:** AI + Rule-based detection combined
361
  - **Adaptive Thresholds:** Dynamic risk assessment
362
+ - **Comprehensive Coverage:** Email, URL, and text message analysis
363
+
364
 
365
  **⚠️ Academic Research Tool:** For educational purposes - always verify through official channels.
366
  """)