File tree 1 file changed +3
-14
lines changed
libs/labelbox/src/labelbox
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -955,21 +955,10 @@ def create_model_evaluation_project(
955
955
>>> This creates a new project with no data rows.
956
956
957
957
"""
958
- autogenerate_data_rows = False
959
- dataset_name_or_id = None
960
- append_to_existing_dataset = None
958
+ dataset_name_or_id = dataset_id or dataset_name
959
+ append_to_existing_dataset = bool (dataset_id )
961
960
962
- if dataset_id or dataset_name :
963
- autogenerate_data_rows = True
964
-
965
- if dataset_id :
966
- append_to_existing_dataset = True
967
- dataset_name_or_id = dataset_id
968
- elif dataset_name :
969
- append_to_existing_dataset = False
970
- dataset_name_or_id = dataset_name
971
-
972
- if autogenerate_data_rows :
961
+ if dataset_name_or_id :
973
962
kwargs ["dataset_name_or_id" ] = dataset_name_or_id
974
963
kwargs ["append_to_existing_dataset" ] = append_to_existing_dataset
975
964
if data_row_count is None :
You can’t perform that action at this time.
0 commit comments