Update app.py
Browse files
app.py
CHANGED
|
@@ -96,8 +96,8 @@ def generate_performance_metrics():
|
|
| 96 |
model.eval() # Set model to evaluation mode
|
| 97 |
|
| 98 |
y_pred = []
|
| 99 |
-
accuracy = accuracy_score(
|
| 100 |
-
report = classification_report(
|
| 101 |
|
| 102 |
return {
|
| 103 |
"accuracy": f"{accuracy:.2%}",
|
|
|
|
| 96 |
model.eval() # Set model to evaluation mode
|
| 97 |
|
| 98 |
y_pred = []
|
| 99 |
+
accuracy = accuracy_score(y_true, y_pred)
|
| 100 |
+
report = classification_report(y_true, y_pred, output_dict=True)
|
| 101 |
|
| 102 |
return {
|
| 103 |
"accuracy": f"{accuracy:.2%}",
|