Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -315,6 +315,8 @@ with st.expander("**What is FOOD CHAIN?**"):
|
|
315 |
Made by the Classify Crew: [Contact List](https://linktr.ee/classifycrew)
|
316 |
"""
|
317 |
)
|
|
|
|
|
318 |
#################
|
319 |
|
320 |
sample_RAG = {
|
@@ -483,6 +485,4 @@ elif recipe_submit:
|
|
483 |
response = get_response(query)
|
484 |
print(response)
|
485 |
display_response(response)
|
486 |
-
else:
|
487 |
-
st.warning("Please input an image and/or a prompt.", icon=':material/no_meals:')
|
488 |
|
|
|
315 |
Made by the Classify Crew: [Contact List](https://linktr.ee/classifycrew)
|
316 |
"""
|
317 |
)
|
318 |
+
if not query and not uploaded_image:
|
319 |
+
st.warning("Please input an image and/or a prompt.", icon=':material/no_meals:')
|
320 |
#################
|
321 |
|
322 |
sample_RAG = {
|
|
|
485 |
response = get_response(query)
|
486 |
print(response)
|
487 |
display_response(response)
|
|
|
|
|
488 |
|