Update app.py
Browse files
app.py
CHANGED
@@ -81,9 +81,9 @@ def main():
|
|
81 |
st.write("The Predicted Classification is:")
|
82 |
|
83 |
if label_num==0:
|
84 |
-
st.write("Bread (" + f"{percentage}%)")
|
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:
|
@@ -108,10 +108,10 @@ def main():
|
|
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)
|
|
|
81 |
st.write("The Predicted Classification is:")
|
82 |
|
83 |
if label_num==0:
|
84 |
+
st.write("**Bread** (" + f"{percentage}%)")
|
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:
|
|
|
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)
|