Spaces:
Running
Running
MilesCranmer
commited on
Fix length limit
Browse files- gui/app.py +2 -2
gui/app.py
CHANGED
@@ -57,10 +57,10 @@ def greet(
|
|
57 |
f"The column to predict, {col_to_fit}, is not in the file!"
|
58 |
f"I found {df.columns}.",
|
59 |
)
|
60 |
-
if len(df) >
|
61 |
return (
|
62 |
empty_df,
|
63 |
-
"You have uploaded a file with more than
|
64 |
"This will take very long to run. "
|
65 |
"Please upload a subsample of the data, "
|
66 |
"or check the box 'Ignore Warnings'.",
|
|
|
57 |
f"The column to predict, {col_to_fit}, is not in the file!"
|
58 |
f"I found {df.columns}.",
|
59 |
)
|
60 |
+
if len(df) > 10_000 and not force_run:
|
61 |
return (
|
62 |
empty_df,
|
63 |
+
"You have uploaded a file with more than 10,000 rows. "
|
64 |
"This will take very long to run. "
|
65 |
"Please upload a subsample of the data, "
|
66 |
"or check the box 'Ignore Warnings'.",
|