Dun3Co commited on
Commit
f75550d
·
verified ·
1 Parent(s): 2b2b073

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -181,7 +181,7 @@ def metrics(batch: Optional[BatchInputData] = None, limit: int = 100):
181
  return {"error": "No target column 'y' found in dataset."}
182
 
183
  # Convert boolean target to integer
184
- y_true = X["y"].astype(int).tolist()
185
  print(f"[DEBUG] Found {sum(y_true)} positive cases out of {len(y_true)}")
186
  X = X.drop(columns=["y"])
187
 
 
181
  return {"error": "No target column 'y' found in dataset."}
182
 
183
  # Convert boolean target to integer
184
+ y_true = X["y"].tolist()
185
  print(f"[DEBUG] Found {sum(y_true)} positive cases out of {len(y_true)}")
186
  X = X.drop(columns=["y"])
187