Spaces:
Sleeping
Sleeping
Commit
·
7d248e1
1
Parent(s):
49f00c9
Update example
Browse files- foodnet.py +1 -1
foodnet.py
CHANGED
@@ -262,7 +262,7 @@ if add_selectbox == "FoodNet Recommender":
|
|
262 |
st.write("Search for similar food ingredients. Select two or more ingredients to find complementary ingredients.")
|
263 |
ingredients = list(yum.key_to_index.keys())
|
264 |
ingredients = [x.replace('_',' ') for x in ingredients]
|
265 |
-
st.multiselect("Type or select food ingredients", ingredients, default=['
|
266 |
|
267 |
## Slider ##
|
268 |
st.slider("Select number of recommendations to show", min_value=1, max_value=10, value=3, step=1, key='top_n')
|
|
|
262 |
st.write("Search for similar food ingredients. Select two or more ingredients to find complementary ingredients.")
|
263 |
ingredients = list(yum.key_to_index.keys())
|
264 |
ingredients = [x.replace('_',' ') for x in ingredients]
|
265 |
+
st.multiselect("Type or select food ingredients", ingredients, default=['bread', 'lettuce'], key="leftovers")
|
266 |
|
267 |
## Slider ##
|
268 |
st.slider("Select number of recommendations to show", min_value=1, max_value=10, value=3, step=1, key='top_n')
|