Commit ·
03889a5
1
Parent(s): 9a61a5a
fixed the final pipeline between fine front and back.
Browse files
index.py
CHANGED
|
@@ -53,17 +53,6 @@ def main():
|
|
| 53 |
#st.write("Captured Ingredients:", session_state['ingredientsList'])
|
| 54 |
|
| 55 |
button_clicked = st.sidebar.button('Done')
|
| 56 |
-
if button_clicked:
|
| 57 |
-
# Define content for each item
|
| 58 |
-
content = {}
|
| 59 |
-
for ingredient in session_state['ingredientsList']:
|
| 60 |
-
content[ingredient] = askGPT(f"Give me your estimate the calories, grams of protein, grams of sugar, grams of fat, and grams of carbohydrates per 100g of {ingredient} as a list")
|
| 61 |
-
|
| 62 |
-
# Display expanders for each item
|
| 63 |
-
for ingredient in session_state['ingredientsList']:
|
| 64 |
-
with st.sidebar.expander(ingredient):
|
| 65 |
-
st.write(content[ingredient])
|
| 66 |
-
displayRecipes(session_state['ingredientsList'])
|
| 67 |
|
| 68 |
# Display recipes if "Done" is clicked
|
| 69 |
while not button_clicked:
|
|
|
|
| 53 |
#st.write("Captured Ingredients:", session_state['ingredientsList'])
|
| 54 |
|
| 55 |
button_clicked = st.sidebar.button('Done')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
# Display recipes if "Done" is clicked
|
| 58 |
while not button_clicked:
|