tonyliu404 commited on
Commit
13f2313
·
verified ·
1 Parent(s): ec7bb7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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