omarhkh commited on
Commit
806b7a6
1 Parent(s): 841c4ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -98,8 +98,8 @@ def detect_objects2(model_name,url_input,image_input,threshold,type2):
98
 
99
  keep = processed_outputs["scores"] > threshold
100
  det_lab = processed_outputs["labels"][keep].tolist()
101
- det_lab.count(1)
102
- if det_lab.count(1) > 0:
103
  total_text="Trench is Detected \n Image is Not Blurry \n"
104
  else:
105
  total_text="Trench is NOT Detected \n Image is Blurry \n"
 
98
 
99
  keep = processed_outputs["scores"] > threshold
100
  det_lab = processed_outputs["labels"][keep].tolist()
101
+ det_lab.count(6)
102
+ if det_lab.count(6) > 0:
103
  total_text="Trench is Detected \n Image is Not Blurry \n"
104
  else:
105
  total_text="Trench is NOT Detected \n Image is Blurry \n"