loubnabnl HF staff commited on
Commit
18967bf
1 Parent(s): 95fe8fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,6 @@ def load_data(min_score=1, max_score=10):
22
  return ds
23
 
24
  st.subheader("Cluster information")
25
- selected_category_type = st.selectbox("Select a topic", categories)
26
  min_score, max_score = st.columns(2)
27
  with min_score:
28
  min_value = st.slider('Select minimum educational score', 1, 10, 1)
@@ -30,6 +29,7 @@ with max_score:
30
  max_value = st.slider('Select maximum educational score', 1, 10, 10)
31
 
32
  ds = load_data(educational_topic, min_score, max_score)
 
33
  categories = list(set(ds["category"]))
34
  selected_cluster = ds.filter(lambda x: x['category'] == selected_category)
35
 
 
22
  return ds
23
 
24
  st.subheader("Cluster information")
 
25
  min_score, max_score = st.columns(2)
26
  with min_score:
27
  min_value = st.slider('Select minimum educational score', 1, 10, 1)
 
29
  max_value = st.slider('Select maximum educational score', 1, 10, 10)
30
 
31
  ds = load_data(educational_topic, min_score, max_score)
32
+ selected_category_type = st.selectbox("Select a topic", categories)
33
  categories = list(set(ds["category"]))
34
  selected_cluster = ds.filter(lambda x: x['category'] == selected_category)
35