You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
num_labels=st.number_input("Number of Additional labels", min_value=0, value=len(labels), key=f"node_{id}_num_labels")
80
+
num_labels=st.number_input("Number of Additional labels", min_value=0, value=len(labels), key=f"node_{id}_num_labels", help="Nodes may have more than one label. Select the number of additional labels to add.")
81
81
ifnum_labels>0:
82
82
label_columns=st.columns(num_labels)
83
83
forli, xinenumerate(label_columns):
@@ -95,25 +95,25 @@ def nodes_row(
95
95
selected_labels.append(new_label)
96
96
97
97
withnc3:
98
+
initial_num_properties=len(properties)
99
+
# All nodes should have at least one property
100
+
# Otherwise we're just generating a bunch of empty nodes
101
+
# which doesn't require a mock data generator to do. But
102
+
# whatever, maybe someone needs a few label only nodes
103
+
num_properties=st.number_input("Number of properties", value=initial_num_properties, min_value=0, key=f'node_{id}_num_properties', help="Nodes typically have one or more properties. Select the number of properties for this node.")
key_property_name=st.selectbox("Key Property", property_maps.keys(), key=f'node_{id}_key_property', help="Property value that uniquely identifies these nodes from other nodes")
144
143
ifkey_property_namenotinproperty_maps:
145
144
st.error(f'Property "{key_property_name}" does not exist in properties for node {caption}')
146
145
selected_key_property=None
@@ -151,7 +150,7 @@ def nodes_row(
151
150
152
151
153
152
st.markdown('---')
154
-
st.write(f'Number of {caption}nodes to generate')
153
+
st.write(f'Number of {caption}records to generate')
0 commit comments