meg-huggingface commited on
Commit
11d3c97
1 Parent(s): 7b96401

Experimenting with direct merge conflict push to Spaces

Browse files
data_measurements/streamlit_utils.py CHANGED
@@ -161,14 +161,10 @@ def expander_text_lengths(dstats, column_id):
161
  st.markdown(
162
  "### Here is the relative frequency of different text lengths in your dataset:"
163
  )
164
- <<<<<<< HEAD
165
- st.pyplot(dstats.fig_tok_length, use_container_width=True)
166
- =======
167
  try:
168
  st.image(dstats.fig_tok_length_png)
169
  except:
170
  st.pyplot(dstats.fig_tok_length, use_container_width=True)
171
- >>>>>>> a0a4b0702daf66f24d3114997945e3d42906bc95
172
  st.markdown(
173
  "The average length of text instances is **"
174
  + str(dstats.avg_length)
@@ -179,10 +175,8 @@ def expander_text_lengths(dstats, column_id):
179
  # This is quite a large file and is breaking our ability to navigate the app development.
180
  # Just passing if it's not already there for launch v0
181
  if dstats.length_df is not None:
182
- <<<<<<< HEAD
183
  start_id_show_lengths= st.selectbox("Show examples of length:", sorted(dstats.length_df["length"].unique().tolist()))
184
  st.table(dstats.length_df[dstats.length_df["length"] == start_id_show_lengths].set_index("length"))
185
- =======
186
  start_id_show_lengths = st.selectbox(
187
  "Show examples of length:",
188
  sorted(dstats.length_df["length"].unique().tolist()),
@@ -193,7 +187,6 @@ def expander_text_lengths(dstats, column_id):
193
  dstats.length_df["length"] == start_id_show_lengths
194
  ].set_index("length")
195
  )
196
- >>>>>>> a0a4b0702daf66f24d3114997945e3d42906bc95
197
 
198
 
199
  ### Third, use a sentence embedding model
 
161
  st.markdown(
162
  "### Here is the relative frequency of different text lengths in your dataset:"
163
  )
 
 
 
164
  try:
165
  st.image(dstats.fig_tok_length_png)
166
  except:
167
  st.pyplot(dstats.fig_tok_length, use_container_width=True)
 
168
  st.markdown(
169
  "The average length of text instances is **"
170
  + str(dstats.avg_length)
 
175
  # This is quite a large file and is breaking our ability to navigate the app development.
176
  # Just passing if it's not already there for launch v0
177
  if dstats.length_df is not None:
 
178
  start_id_show_lengths= st.selectbox("Show examples of length:", sorted(dstats.length_df["length"].unique().tolist()))
179
  st.table(dstats.length_df[dstats.length_df["length"] == start_id_show_lengths].set_index("length"))
 
180
  start_id_show_lengths = st.selectbox(
181
  "Show examples of length:",
182
  sorted(dstats.length_df["length"].unique().tolist()),
 
187
  dstats.length_df["length"] == start_id_show_lengths
188
  ].set_index("length")
189
  )
 
190
 
191
 
192
  ### Third, use a sentence embedding model