Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
102 |
-
if det_lab.count(
|
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"
|