Update app.py
Browse files
app.py
CHANGED
|
@@ -86,8 +86,6 @@ def classify_email(email_text):
|
|
| 86 |
result = "Spam" if predictions.item() == 1 else "Ham"
|
| 87 |
return result, f"{confidence:.2f}%"
|
| 88 |
|
| 89 |
-
}
|
| 90 |
-
|
| 91 |
# Evaluation function with detailed classification report
|
| 92 |
def evaluate_model_with_report(val_loader):
|
| 93 |
model.eval() # Set model to evaluation mode
|
|
|
|
| 86 |
result = "Spam" if predictions.item() == 1 else "Ham"
|
| 87 |
return result, f"{confidence:.2f}%"
|
| 88 |
|
|
|
|
|
|
|
| 89 |
# Evaluation function with detailed classification report
|
| 90 |
def evaluate_model_with_report(val_loader):
|
| 91 |
model.eval() # Set model to evaluation mode
|