Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -281,8 +281,6 @@ st.sidebar.markdown(
|
|
281 |
unsafe_allow_html=True
|
282 |
)
|
283 |
|
284 |
-
st.sidebar.write("Upload an image and/or enter a query to get started! Explore our trained dish types listed below for guidance.")
|
285 |
-
|
286 |
uploaded_image = st.sidebar.file_uploader("Choose an image:", type="jpg")
|
287 |
query = st.sidebar.text_area("Enter your query:", height=100)
|
288 |
recipe_submit = st.sidebar.button(label='Chain Recipe', icon=':material/link:', use_container_width=True)
|
@@ -315,6 +313,12 @@ with st.expander("**What is FOOD CHAIN?**"):
|
|
315 |
)
|
316 |
#################
|
317 |
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
# Image Classification Section
|
319 |
if uploaded_image and recipe_submit:
|
320 |
with st.expander("**Food Classification**", expanded=True, icon=':material/search_insights:'):
|
|
|
281 |
unsafe_allow_html=True
|
282 |
)
|
283 |
|
|
|
|
|
284 |
uploaded_image = st.sidebar.file_uploader("Choose an image:", type="jpg")
|
285 |
query = st.sidebar.text_area("Enter your query:", height=100)
|
286 |
recipe_submit = st.sidebar.button(label='Chain Recipe', icon=':material/link:', use_container_width=True)
|
|
|
313 |
)
|
314 |
#################
|
315 |
|
316 |
+
if not uploaded_image:
|
317 |
+
placeholder = Image.open("dish-placeholder.jpg")
|
318 |
+
st.image(placeholder, caption="Uploaded Image.", use_container_width=True)
|
319 |
+
|
320 |
+
st.sidebar.write("Upload an image and/or enter a query to get started! Explore our trained dish types listed below for guidance.")
|
321 |
+
|
322 |
# Image Classification Section
|
323 |
if uploaded_image and recipe_submit:
|
324 |
with st.expander("**Food Classification**", expanded=True, icon=':material/search_insights:'):
|