Spaces:
Sleeping
Sleeping
raise high level from 60% to 80%
Browse files
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.
|
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 |
-
# π‘οΈ
|
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
|
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 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
|
|
|
|
|
|
|
|
|
|
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 |
""")
|