omarhkh commited on
Commit
28ca5af
1 Parent(s): a27464f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -101,10 +101,11 @@ def detect_objects2(model_name,url_input,image_input,threshold,type2):
101
  det_lab = processed_outputs["labels"][keep].tolist()
102
  det_lab.count(1)
103
  if det_lab.count(1) > 0:
104
- total_text="Trench is Detected \n"
105
  else:
106
- total_text="Trench is NOT Detected \n"
107
  xxresult=1
 
108
 
109
 
110
  if det_lab.count(4) > 0:
 
101
  det_lab = processed_outputs["labels"][keep].tolist()
102
  det_lab.count(1)
103
  if det_lab.count(1) > 0:
104
+ total_text="Trench is Detected \n Not Blurry \n"
105
  else:
106
+ total_text="Trench is NOT Detected \n Blurry \n"
107
  xxresult=1
108
+ print(type2)
109
 
110
 
111
  if det_lab.count(4) > 0: