Kaludi commited on
Commit
608f762
1 Parent(s): 7af1684

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -85,33 +85,33 @@ def main():
85
  elif label_num==1:
86
  st.write("**Dairy** (" + f"{percentage}%)")
87
  elif label_num==2:
88
- st.write("Dessert (" + f"{percentage}%)")
89
  elif label_num==3:
90
- st.write("Egg (" + f"{percentage}%)")
91
  elif label_num==4:
92
- st.write("Fried Food (" + f"{percentage}%)")
93
  elif label_num==5:
94
- st.write("Fruit (" + f"{percentage}%)")
95
  elif label_num==6:
96
- st.write("Meat (" + f"{percentage}%)")
97
  elif label_num==7:
98
- st.write("Noodles (" + f"{percentage}%)")
99
  elif label_num==8:
100
- st.write("Rice (" + f"{percentage}%)")
101
  elif label_num==9:
102
- st.write("Seafood (" + f"{percentage}%)")
103
  elif label_num==10:
104
- st.write("Soup (" + f"{percentage}%)")
105
  else:
106
- st.write("Vegetable (" + f"{percentage}%)")
107
 
108
 
109
  select_health = st.selectbox("Select One (Not Functional Yet):", ["Choose Healthy or Non-Healthy", "Healthy", "Non-Healthy"])
110
  if select_health == "Healthy":
111
- st.write("You selected healthy for", "**Bread**" if label_num==0 else "Dairy" if label_num==1 else "Dessert" if label_num==2 else "Egg" if label_num==3 else "Fried Food" if label_num==4 else "Fruit" if label_num==5 else "Meat" if label_num==6 else "Noodles" if label_num==7 else "Rice" if label_num==8 else "Seafood" if label_num==9 else "Soup" if label_num==10 else "Vegetable")
112
  # Add code to fetch healthy recipe here
113
  elif select_health == "Non-Healthy":
114
- st.write("You selected non-healthy for", "**Bread**" if label_num==0 else "Dairy" if label_num==1 else "Dessert" if label_num==2 else "Egg" if label_num==3 else "Fried Food" if label_num==4 else "Fruit" if label_num==5 else "Meat" if label_num==6 else "Noodles" if label_num==7 else "Rice" if label_num==8 else "Seafood" if label_num==9 else "Soup" if label_num==10 else "Vegetable")
115
  # Add code to fetch unhealthy recipe here
116
 
117
  st.image(img)
 
85
  elif label_num==1:
86
  st.write("**Dairy** (" + f"{percentage}%)")
87
  elif label_num==2:
88
+ st.write("**Dessert** (" + f"{percentage}%)")
89
  elif label_num==3:
90
+ st.write("**Egg** (" + f"{percentage}%)")
91
  elif label_num==4:
92
+ st.write("**Fried Food** (" + f"{percentage}%)")
93
  elif label_num==5:
94
+ st.write("**Fruit** (" + f"{percentage}%)")
95
  elif label_num==6:
96
+ st.write("**Meat** (" + f"{percentage}%)")
97
  elif label_num==7:
98
+ st.write("**Noodles** (" + f"{percentage}%)")
99
  elif label_num==8:
100
+ st.write("**Rice** (" + f"{percentage}%)")
101
  elif label_num==9:
102
+ st.write("**Seafood** (" + f"{percentage}%)")
103
  elif label_num==10:
104
+ st.write("**Soup** (" + f"{percentage}%)")
105
  else:
106
+ st.write("**Vegetable** (" + f"{percentage}%)")
107
 
108
 
109
  select_health = st.selectbox("Select One (Not Functional Yet):", ["Choose Healthy or Non-Healthy", "Healthy", "Non-Healthy"])
110
  if select_health == "Healthy":
111
+ st.write("You selected healthy for", "**Bread**" if label_num==0 else "**Dairy**" if label_num==1 else "**Dessert**" if label_num==2 else "**Egg**" if label_num==3 else "**Fried Food**" if label_num==4 else "**Fruit**" if label_num==5 else "**Meat**" if label_num==6 else "**Noodles**" if label_num==7 else "**Rice**" if label_num==8 else "**Seafood**" if label_num==9 else "**Soup**" if label_num==10 else "**Vegetable**")
112
  # Add code to fetch healthy recipe here
113
  elif select_health == "Non-Healthy":
114
+ st.write("You selected non-healthy for", "**Bread**" if label_num==0 else "**Dairy**" if label_num==1 else "**Dessert**" if label_num==2 else "**Egg**" if label_num==3 else "**Fried Food**" if label_num==4 else "**Fruit**" if label_num==5 else "**Meat**" if label_num==6 else "**Noodles**" if label_num==7 else "**Rice**" if label_num==8 else "**Seafood**" if label_num==9 else "**Soup**" if label_num==10 else "**Vegetable**")
115
  # Add code to fetch unhealthy recipe here
116
 
117
  st.image(img)