File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -965,7 +965,7 @@ def add_dataset(
965
965
# Feature validations
966
966
try :
967
967
if text_column_name :
968
- feature_names . append ( text_column_name )
968
+ feature_names = [ text_column_name ]
969
969
for feature_name in feature_names :
970
970
headers .index (feature_name )
971
971
except ValueError :
@@ -982,7 +982,6 @@ def add_dataset(
982
982
f"Features { features_not_in_dataset } specified in `feature_names` "
983
983
"are not in the dataset. \n "
984
984
) from None
985
-
986
985
# Tag column validation
987
986
try :
988
987
if tag_column_name :
@@ -1002,10 +1001,10 @@ def add_dataset(
1002
1001
) from None
1003
1002
if task_type == TaskType .TextClassification :
1004
1003
max_text_size = df [text_column_name ].str .len ().max ()
1005
- if max_text_size > 100000 :
1004
+ if max_text_size > 1000 :
1006
1005
raise exceptions .UnboxSubscriptionPlanException (
1007
1006
"The dataset you are trying to upload contains rows with "
1008
- f"{ max_text_size } characters, which exceeds the 100,000 character "
1007
+ f"{ max_text_size } characters, which exceeds the 1000 character "
1009
1008
"limit."
1010
1009
) from None
1011
1010
You can’t perform that action at this time.
0 commit comments