sorting keyword dropdown
Browse files
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(
|
| 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)
|