lewtun HF staff commited on
Commit
2859204
1 Parent(s): 4f5bbb3

Hide configuration as optional expander

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -44,14 +44,14 @@ st.markdown(
44
 
45
  dataset_name = st.selectbox("Select a dataset", [f"lewtun/autoevaluate__{dset}" for dset in DATASETS_TO_EVALUATE])
46
 
47
- with st.form(key="form"):
 
 
48
 
49
- # TODO: remove this step once we select real datasets
50
- # Strip out original dataset name
51
- original_dataset_name = dataset_name.split("/")[-1].split("__")[-1]
52
 
53
- # In general this will be a list of multiple configs => need to generalise logic here
54
- metadata = get_metadata(dataset_name)
55
 
56
  dataset_config = st.selectbox("Select a config", [metadata[0]["config"]])
57
 
@@ -82,6 +82,8 @@ with st.form(key="form"):
82
  st.selectbox("This column should contain the text you want to classify", col_names, index=0)
83
  st.selectbox("This column should contain the labels you want to assign to the text", col_names, index=1)
84
 
 
 
85
  compatible_models = get_compatible_models(metadata[0]["task"], original_dataset_name)
86
 
87
  selected_models = st.multiselect("Select the models you wish to evaluate", compatible_models, compatible_models[0])
 
44
 
45
  dataset_name = st.selectbox("Select a dataset", [f"lewtun/autoevaluate__{dset}" for dset in DATASETS_TO_EVALUATE])
46
 
47
+ # TODO: remove this step once we select real datasets
48
+ # Strip out original dataset name
49
+ original_dataset_name = dataset_name.split("/")[-1].split("__")[-1]
50
 
51
+ # In general this will be a list of multiple configs => need to generalise logic here
52
+ metadata = get_metadata(dataset_name)
 
53
 
54
+ with st.expander("Advanced configuration"):
 
55
 
56
  dataset_config = st.selectbox("Select a config", [metadata[0]["config"]])
57
 
 
82
  st.selectbox("This column should contain the text you want to classify", col_names, index=0)
83
  st.selectbox("This column should contain the labels you want to assign to the text", col_names, index=1)
84
 
85
+ with st.form(key="form"):
86
+
87
  compatible_models = get_compatible_models(metadata[0]["task"], original_dataset_name)
88
 
89
  selected_models = st.multiselect("Select the models you wish to evaluate", compatible_models, compatible_models[0])