Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -163,8 +163,8 @@ def metrics(batch: Optional[BatchInputData] = None, y: Optional[List[int]] = Non
|
|
| 163 |
X = fetch_test_data(limit=limit)
|
| 164 |
|
| 165 |
if y is None:
|
| 166 |
-
# Look for '
|
| 167 |
-
if "
|
| 168 |
y = X["y"].astype(int).tolist()
|
| 169 |
X = X.drop(columns=["y"])
|
| 170 |
else:
|
|
|
|
| 163 |
X = fetch_test_data(limit=limit)
|
| 164 |
|
| 165 |
if y is None:
|
| 166 |
+
# Look for 'y' column in NoCoDB data
|
| 167 |
+
if "y" in X.columns:
|
| 168 |
y = X["y"].astype(int).tolist()
|
| 169 |
X = X.drop(columns=["y"])
|
| 170 |
else:
|