meg HF staff commited on
Commit
3665172
2 Parent(s): ab232f5 84f1693

Merge branch 'main' of https://huggingface.co/spaces/huggingface/data-measurements-tool-2 into main

Browse files
data_measurements/streamlit_utils.py CHANGED
@@ -175,18 +175,10 @@ def expander_text_lengths(dstats, column_id):
175
  + str(dstats.std_length)
176
  + "**."
177
  )
178
-
179
- start_id_show_lengths = st.slider(
180
- f"Show the shortest sentences{column_id} starting at:",
181
- 0,
182
- dstats.num_uniq_lengths,
183
- value=0,
184
- step=1,
185
- )
186
-
187
  # This is quite a large file and is breaking our ability to navigate the app development.
188
  # Just passing if it's not already there for launch v0
189
  if dstats.length_df is not None:
 
190
  st.table(dstats.length_df[dstats.length_df["length"] == start_id_show_lengths].set_index("length"))
191
 
192
 
 
175
  + str(dstats.std_length)
176
  + "**."
177
  )
 
 
 
 
 
 
 
 
 
178
  # This is quite a large file and is breaking our ability to navigate the app development.
179
  # Just passing if it's not already there for launch v0
180
  if dstats.length_df is not None:
181
+ start_id_show_lengths= st.selectbox("Show examples of length:", sorted(dstats.length_df["length"].unique().tolist()))
182
  st.table(dstats.length_df[dstats.length_df["length"] == start_id_show_lengths].set_index("length"))
183
 
184