Spaces:
Sleeping
Sleeping
tonyliu404
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -593,9 +593,11 @@ if recipe_submit and uploaded_image:
|
|
593 |
# st.markdown(f"*{class_name}*: {confidence:.2f}%")
|
594 |
# print(fpredictions)
|
595 |
|
596 |
-
elif recipe_submit:
|
597 |
with col2:
|
598 |
response = get_response(query)
|
599 |
print(response)
|
600 |
display_response(response)
|
|
|
|
|
601 |
|
|
|
593 |
# st.markdown(f"*{class_name}*: {confidence:.2f}%")
|
594 |
# print(fpredictions)
|
595 |
|
596 |
+
elif recipe_submit and query:
|
597 |
with col2:
|
598 |
response = get_response(query)
|
599 |
print(response)
|
600 |
display_response(response)
|
601 |
+
else:
|
602 |
+
st.warning('Please input an image or a query.', icon="🍕")
|
603 |
|