leygit commited on
Commit
7d9d8d5
·
verified ·
1 Parent(s): a863d5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(y_test, y_pred)
100
- report = classification_report(y_test, y_pred, output_dict=True)
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%}",