Shrikrishna commited on
Commit
fe0e686
1 Parent(s): 8235ac5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -163,7 +163,10 @@ if uploaded_image is not None:
163
  img = cv2.resize(img, (130, 130))
164
 
165
  result = classify_image(get_b64_test_image_for_virat(), display_image)
166
- st.text(result[0])
 
 
 
167
 
168
 
169
 
 
163
  img = cv2.resize(img, (130, 130))
164
 
165
  result = classify_image(get_b64_test_image_for_virat(), display_image)
166
+ try:
167
+ st.text(result[0])
168
+ error:
169
+ st.text("Image Cannot be Classified!")
170
 
171
 
172