Spaces:
Build error
Build error
debugged error due to parsing % instead of float
Browse files
app.py
CHANGED
|
@@ -63,8 +63,8 @@ def predict_phishing(text):
|
|
| 63 |
confidence = max_label[1]
|
| 64 |
|
| 65 |
# Create confidence bar data
|
| 66 |
-
confidence_data = {label:
|
| 67 |
-
|
| 68 |
# Risk assessment
|
| 69 |
if "Phishing" in prediction:
|
| 70 |
risk_level = "🚨 HIGH RISK - Potential Phishing Detected"
|
|
|
|
| 63 |
confidence = max_label[1]
|
| 64 |
|
| 65 |
# Create confidence bar data
|
| 66 |
+
confidence_data = {label: prob for label, prob in labels.items()}
|
| 67 |
+
|
| 68 |
# Risk assessment
|
| 69 |
if "Phishing" in prediction:
|
| 70 |
risk_level = "🚨 HIGH RISK - Potential Phishing Detected"
|