bokharim24 commited on
Commit
c409297
·
2 Parent(s): d4044bf 6f12f41

Merge branch 'main' of https://huggingface.co/threeidots/SpeakClear

Browse files
Files changed (2) hide show
  1. __pycache__/app.cpython-311.pyc +0 -0
  2. index.py +20 -11
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
index.py CHANGED
@@ -14,24 +14,16 @@ if 'ingredientsList' not in session_state:
14
 
15
  def main():
16
 
17
- st.title('RecipeMate')
18
 
19
  st.sidebar.header('Ingredients & Nutrition')
20
  # List of items
21
  #items = ['Item 1', 'Item 2', 'Item 3']
22
 
23
  #list to of Ingredients camptured
24
- ingredientsList =["apple", "orange", "mango", "potato", "cabbage", "carrot", "lentils"] #list()
25
 
26
- # Define content for each item
27
- content = {}
28
- for ingredient in ingredientsList:
29
- content[ingredient] = askGPT(f"Give me your estimate the calories, grams of sugar, grams of fat, and grams of carbohydrates per 100g of {ingredient} as a list")
30
-
31
- # Display expanders for each item
32
- for ingredient in ingredientsList:
33
- with st.sidebar.expander(ingredient):
34
- st.write(content[ingredient])
35
 
36
 
37
  # Create a VideoCapture object to access the webcam
@@ -58,6 +50,23 @@ def main():
58
  done_button = st.sidebar.button('Done')
59
 
60
  # Display the captured ingredients
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  # Display recipes if "Done" is clicked
63
  while not done_button:
 
14
 
15
  def main():
16
 
17
+ st.title('🧑🏽‍🍳 RecipeBud')
18
 
19
  st.sidebar.header('Ingredients & Nutrition')
20
  # List of items
21
  #items = ['Item 1', 'Item 2', 'Item 3']
22
 
23
  #list to of Ingredients camptured
24
+ ingredientsList =["apple", "orange", "mango"] #list()
25
 
26
+
 
 
 
 
 
 
 
 
27
 
28
 
29
  # Create a VideoCapture object to access the webcam
 
50
  done_button = st.sidebar.button('Done')
51
 
52
  # Display the captured ingredients
53
+ <<<<<<< HEAD
54
+ =======
55
+ st.write("Captured Ingredients:", session_state['ingredientsList'])
56
+
57
+ button_clicked = st.sidebar.button('Done')
58
+ if button_clicked:
59
+ # Define content for each item
60
+ content = {}
61
+ for ingredient in ingredientsList:
62
+ 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")
63
+
64
+ # Display expanders for each item
65
+ for ingredient in ingredientsList:
66
+ with st.sidebar.expander(ingredient):
67
+ st.write(content[ingredient])
68
+ displayRecipes(ingredientsList)
69
+ >>>>>>> 6f12f411d2dc6e013023862698ddcf03e7dc6075
70
 
71
  # Display recipes if "Done" is clicked
72
  while not done_button: