Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,9 @@ def compute(table: np.array):
|
|
19 |
table = table[non_empty_row_mask]
|
20 |
empty_mask = table == '(predict)'
|
21 |
empty_inds = np.where(empty_mask)
|
22 |
-
if
|
23 |
return "⚠️ **ERROR: TabPFN is not made for datasets with a trainingsize > 1024.**", None, None
|
24 |
-
if
|
25 |
return "⚠️ **ERROR: TabPFN is not made for datasets with a feature size > 100.**", None, None
|
26 |
if not len(empty_inds[0]):
|
27 |
return "⚠️ **ERROR: Please leave at least one field blank for prediction.**", None, None
|
|
|
19 |
table = table[non_empty_row_mask]
|
20 |
empty_mask = table == '(predict)'
|
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
|
24 |
+
if table.shape[1] > 100:
|
25 |
return "⚠️ **ERROR: TabPFN is not made for datasets with a feature size > 100.**", None, None
|
26 |
if not len(empty_inds[0]):
|
27 |
return "⚠️ **ERROR: Please leave at least one field blank for prediction.**", None, None
|