Kaludi commited on
Commit
2ecfd0f
1 Parent(s): 68bf55b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -54,27 +54,27 @@ def main():
54
 
55
  with col1:
56
  st.header("Example Images")
57
- st.image("examples/example_0.jpg", width=360)
58
- st.image("examples/example_1.jpg", width=360)
59
 
60
  with col2:
61
- st.image("examples/example_2.jpg", width=360)
62
- st.image("examples/example_3.jpg", width=360)
63
 
64
  with col3:
65
- st.image("examples/example_4.jpg", width=360)
66
- st.image("examples/example_5.jpg", width=360)
67
 
68
  with col4:
69
- st.image("examples/example_6.jpg", width=360)
70
- st.image("examples/example_7.jpg", width=360)
71
 
72
  # # display the text if the checkbox returns True value
73
  # show_images = not show_images
74
  # if show_images:
75
  # st.header("Example Images")
76
  # for image in images:
77
- # st.image(image, width=360)
78
 
79
  calories = st.slider("Select Max Calories (Not Functional Yet)", 50, 2000)
80
 
@@ -133,7 +133,7 @@ def main():
133
  st.write("You Selected **_Non-Healthy_** With Max", calories, "Calories 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**")
134
  # Add code to fetch unhealthy recipe here (line #125-138)
135
 
136
- st.image(img, width=250)
137
  st.markdown("<hr style='text-align: center;'>", unsafe_allow_html=True)
138
  st.markdown("<p style='text-align: center'><a href='https://github.com/Kaludii'>Github</a> | <a href='https://huggingface.co/Kaludi'>HuggingFace</a></p>", unsafe_allow_html=True)
139
 
 
54
 
55
  with col1:
56
  st.header("Example Images")
57
+ st.image("examples/example_0.jpg", width=260)
58
+ st.image("examples/example_1.jpg", width=260)
59
 
60
  with col2:
61
+ st.image("examples/example_2.jpg", width=260)
62
+ st.image("examples/example_3.jpg", width=260)
63
 
64
  with col3:
65
+ st.image("examples/example_4.jpg", width=260)
66
+ st.image("examples/example_5.jpg", width=260)
67
 
68
  with col4:
69
+ st.image("examples/example_6.jpg", width=260)
70
+ st.image("examples/example_7.jpg", width=260)
71
 
72
  # # display the text if the checkbox returns True value
73
  # show_images = not show_images
74
  # if show_images:
75
  # st.header("Example Images")
76
  # for image in images:
77
+ # st.image(image, width=260)
78
 
79
  calories = st.slider("Select Max Calories (Not Functional Yet)", 50, 2000)
80
 
 
133
  st.write("You Selected **_Non-Healthy_** With Max", calories, "Calories 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**")
134
  # Add code to fetch unhealthy recipe here (line #125-138)
135
 
136
+ st.image(img, width=260)
137
  st.markdown("<hr style='text-align: center;'>", unsafe_allow_html=True)
138
  st.markdown("<p style='text-align: center'><a href='https://github.com/Kaludii'>Github</a> | <a href='https://huggingface.co/Kaludi'>HuggingFace</a></p>", unsafe_allow_html=True)
139