omarhkh commited on
Commit
38164a7
·
1 Parent(s): a7f8398

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -115,7 +115,6 @@ def detect_objects2(model_name,url_input,image_input,threshold,type2):
115
  else:
116
  total_text+="Measuring Tape (Vertical) for measuring Depth is NOT Detected \n"
117
  if type2=="Trench Depth Measurement":
118
- global xxresult
119
  xxresult=1
120
 
121
  if det_lab.count(5) > 0:
@@ -123,7 +122,6 @@ def detect_objects2(model_name,url_input,image_input,threshold,type2):
123
  else:
124
  total_text+="Measuring Tape (Horizontal) for measuring Width is NOT Detected \n"
125
  if type2=="Trench Width Measurement":
126
- global xxresult
127
  xxresult=1
128
 
129
  return total_text
 
115
  else:
116
  total_text+="Measuring Tape (Vertical) for measuring Depth is NOT Detected \n"
117
  if type2=="Trench Depth Measurement":
 
118
  xxresult=1
119
 
120
  if det_lab.count(5) > 0:
 
122
  else:
123
  total_text+="Measuring Tape (Horizontal) for measuring Width is NOT Detected \n"
124
  if type2=="Trench Width Measurement":
 
125
  xxresult=1
126
 
127
  return total_text