Spaces:
Runtime error
Runtime error
Anonymous
commited on
Commit
·
17dc250
1
Parent(s):
2bb865d
Final code
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def compute(table: np.array):
|
|
17 |
vfunc = np.vectorize(lambda s: len(str(s)))
|
18 |
non_empty_row_mask = (vfunc(table).sum(1) != 0)
|
19 |
table = table[non_empty_row_mask]
|
20 |
-
empty_mask = table == '
|
21 |
empty_inds = np.where(empty_mask)
|
22 |
if table.shape[0] > 1024:
|
23 |
return "⚠️ **ERROR: TabPFN is not made for datasets with a trainingsize > 1024.**", None, None
|
|
|
17 |
vfunc = np.vectorize(lambda s: len(str(s)))
|
18 |
non_empty_row_mask = (vfunc(table).sum(1) != 0)
|
19 |
table = table[non_empty_row_mask]
|
20 |
+
empty_mask = table == ''
|
21 |
empty_inds = np.where(empty_mask)
|
22 |
if table.shape[0] > 1024:
|
23 |
return "⚠️ **ERROR: TabPFN is not made for datasets with a trainingsize > 1024.**", None, None
|