Corey Morris commited on
Commit
25bce6d
1 Parent(s): 991fb2a

changed default scatter plot index

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -189,6 +189,12 @@ matching_columns = [col for col in filtered_data.columns if any(query.lower() in
189
  st.markdown("## Sortable Results")
190
  st.dataframe(filtered_data[matching_columns])
191
 
 
 
 
 
 
 
192
 
193
  # CSV download
194
 
@@ -280,8 +286,8 @@ st.markdown("***The dashed red line indicates random chance accuracy of 0.25 as
280
  st.markdown("***")
281
  st.write("As expected, there is a strong positive relationship between the number of parameters and average performance on the MMLU evaluation.")
282
 
283
- selected_x_column = st.selectbox('Select x-axis', filtered_data.columns.tolist(), index=0)
284
- selected_y_column = st.selectbox('Select y-axis', filtered_data.columns.tolist(), index=3)
285
 
286
  if selected_x_column != selected_y_column: # Avoid creating a plot with the same column on both axes
287
  fig = create_plot(filtered_data, selected_x_column, selected_y_column)
 
189
  st.markdown("## Sortable Results")
190
  st.dataframe(filtered_data[matching_columns])
191
 
192
+ # create a dataframe with one column that is titled link. the content is https://huggingface.co/garage-bAInd/Platypus2-70B-instruct
193
+ # the link should be clickable
194
+ # the link should open in a new tab
195
+ test_df = pd.DataFrame({'link': ['[link](https://huggingface.co/garage-bAInd/Platypus2-70B-instruct)']})
196
+ st.dataframe(test_df)
197
+
198
 
199
  # CSV download
200
 
 
286
  st.markdown("***")
287
  st.write("As expected, there is a strong positive relationship between the number of parameters and average performance on the MMLU evaluation.")
288
 
289
+ selected_x_column = st.selectbox('Select x-axis', filtered_data.columns.tolist(), index=1)
290
+ selected_y_column = st.selectbox('Select y-axis', filtered_data.columns.tolist(), index=4)
291
 
292
  if selected_x_column != selected_y_column: # Avoid creating a plot with the same column on both axes
293
  fig = create_plot(filtered_data, selected_x_column, selected_y_column)