Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def response(image):
|
|
| 33 |
cone = con.astype(float)
|
| 34 |
conef = round(cone,3)
|
| 35 |
conef = conef * 100
|
| 36 |
-
text += (f"Detected {name[cl]} with confidence {round(conef,1)} at ({xy[0]},{xy[1]})
|
| 37 |
|
| 38 |
if cl == 0:
|
| 39 |
name_weap += name[cl] + '\n'
|
|
|
|
| 33 |
cone = con.astype(float)
|
| 34 |
conef = round(cone,3)
|
| 35 |
conef = conef * 100
|
| 36 |
+
text += (f"Detected {name[cl]} with confidence {round(conef,1)}% at ({xy[0]},{xy[1]})\n")
|
| 37 |
|
| 38 |
if cl == 0:
|
| 39 |
name_weap += name[cl] + '\n'
|