sanjeev21 commited on
Commit
709af74
·
1 Parent(s): bb181ed

sorting keyword dropdown

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -181,7 +181,7 @@ def display_recommendations():
181
  list_publisherid.append(keyword_publisherid.split("_")[1])
182
  # list_keywords = ['aquaman', 'superman', 'batman', 'shoes', 'electronics', 'wallet', 'movies', 'books'] # Temporary
183
  list_publisherid = ['725895'] # For the time being Publisher ID is being HardCoded.
184
- selected_keyword = st.sidebar.selectbox("Select a Keyword:", set(list_keywords.sort()))
185
  publisher_id = st.sidebar.selectbox("Select a Publisher ID:", set(list_publisherid))
186
 
187
  # st.write(selected_keyword)
 
181
  list_publisherid.append(keyword_publisherid.split("_")[1])
182
  # list_keywords = ['aquaman', 'superman', 'batman', 'shoes', 'electronics', 'wallet', 'movies', 'books'] # Temporary
183
  list_publisherid = ['725895'] # For the time being Publisher ID is being HardCoded.
184
+ selected_keyword = st.sidebar.selectbox("Select a Keyword:", set(sorted(list_keywords)))
185
  publisher_id = st.sidebar.selectbox("Select a Publisher ID:", set(list_publisherid))
186
 
187
  # st.write(selected_keyword)