vives commited on
Commit
560e686
1 Parent(s): c71acc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -14,6 +14,11 @@ exclude_words = st.radio("exclude_words",[True,False], help="Exclude results tha
14
  exclude_text = st.radio("exclude_text",[True,False], help="Exclude results that contain the query (i.e exclude 'tomato soup recipe' if the query is 'tomato soup')")
15
  k = st.number_input("Top k nearest key-phrases",1,10,5)
16
 
 
 
 
 
 
17
  with open("kp_dict_merged.pickle",'rb') as handle:
18
  kp_dict = pickle.load(handle)
19
  for key in kp_dict.keys():
 
14
  exclude_text = st.radio("exclude_text",[True,False], help="Exclude results that contain the query (i.e exclude 'tomato soup recipe' if the query is 'tomato soup')")
15
  k = st.number_input("Top k nearest key-phrases",1,10,5)
16
 
17
+ with st.sidebar:
18
+ diversify_box = st.checkbox("Diversify results",True)
19
+ if diversify_box:
20
+ k = st.number_input("Top k nearest key-phrases",10,30,20)
21
+
22
  with open("kp_dict_merged.pickle",'rb') as handle:
23
  kp_dict = pickle.load(handle)
24
  for key in kp_dict.keys():