Spaces:
Sleeping
Sleeping
Update app.py
#8
by
drod75
- opened
app.py
CHANGED
|
@@ -282,22 +282,26 @@ def display_dishes_in_grid(dishes, cols=3):
|
|
| 282 |
|
| 283 |
#Left sidebar title
|
| 284 |
st.sidebar.markdown(
|
| 285 |
-
"<h1 style='font-size:32px;'>
|
| 286 |
unsafe_allow_html=True
|
| 287 |
)
|
|
|
|
| 288 |
|
|
|
|
| 289 |
uploaded_image = st.sidebar.file_uploader("Choose an image:", type="jpg")
|
|
|
|
|
|
|
| 290 |
query = st.sidebar.text_area("Enter your query:", height=100)
|
| 291 |
recipe_submit = st.sidebar.button(label='Chain Recipe', icon=':material/link:', use_container_width=True)
|
| 292 |
|
| 293 |
# gap
|
| 294 |
-
st.sidebar.markdown("<br><br
|
|
|
|
| 295 |
selected_dish = st.sidebar.selectbox(
|
| 296 |
-
"Search for a dish that our model can classify:",
|
| 297 |
options=class_names,
|
| 298 |
index=0
|
| 299 |
)
|
| 300 |
-
st.sidebar.write("Upload an image and/or enter a query to get started! Explore our trained dish types listed below for guidance.")
|
| 301 |
|
| 302 |
# Main title
|
| 303 |
st.title("Welcome to FOOD CHAIN!")
|
|
|
|
| 282 |
|
| 283 |
#Left sidebar title
|
| 284 |
st.sidebar.markdown(
|
| 285 |
+
"<h1 style='font-size:32px;'>Food-Chain</h1>",
|
| 286 |
unsafe_allow_html=True
|
| 287 |
)
|
| 288 |
+
st.sidebar.write("Upload an image and/or enter a query to get started! Explore our trained dish types listed below for guidance.")
|
| 289 |
|
| 290 |
+
st.sidebar.markdown('### Food Classification')
|
| 291 |
uploaded_image = st.sidebar.file_uploader("Choose an image:", type="jpg")
|
| 292 |
+
|
| 293 |
+
st.sidebar.markdown('### RAG Recipe')
|
| 294 |
query = st.sidebar.text_area("Enter your query:", height=100)
|
| 295 |
recipe_submit = st.sidebar.button(label='Chain Recipe', icon=':material/link:', use_container_width=True)
|
| 296 |
|
| 297 |
# gap
|
| 298 |
+
st.sidebar.markdown("<br><br>", unsafe_allow_html=True)
|
| 299 |
+
st.sidebar.markdown("### Dish Database")
|
| 300 |
selected_dish = st.sidebar.selectbox(
|
| 301 |
+
"Search for a dish that our model can classify:",
|
| 302 |
options=class_names,
|
| 303 |
index=0
|
| 304 |
)
|
|
|
|
| 305 |
|
| 306 |
# Main title
|
| 307 |
st.title("Welcome to FOOD CHAIN!")
|