Spaces:
Sleeping
Sleeping
OmPrakashSingh1704
commited on
Commit
•
84a0eda
1
Parent(s):
e4245c2
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ def show_recipe(recipe):
|
|
41 |
col01, col02 = st.columns(2)
|
42 |
with col01:
|
43 |
cont = st.container(border=True, height=500)
|
44 |
-
for i in recipe["ingredients"]:
|
45 |
-
cont.selectbox(i['name'],options=items_dict.iloc[get_recommendations(i['name'],cv,vectors)]["PRODUCT_NAME"].values)
|
46 |
with col02:
|
47 |
cont = st.container(border=True, height=500)
|
48 |
cont.write(instructions)
|
|
|
41 |
col01, col02 = st.columns(2)
|
42 |
with col01:
|
43 |
cont = st.container(border=True, height=500)
|
44 |
+
for j,i in enumerate(recipe["ingredients"]):
|
45 |
+
cont.selectbox(i['name'],options=items_dict.iloc[get_recommendations(i['name'],cv,vectors)]["PRODUCT_NAME"].values,key=f"selectbox_{idx}_{i['name']}")
|
46 |
with col02:
|
47 |
cont = st.container(border=True, height=500)
|
48 |
cont.write(instructions)
|