Update app.py
Browse files
app.py
CHANGED
@@ -32,14 +32,14 @@ def response2(image: gr.Image = None,image_size: gr.Slider = 640, conf_threshold
|
|
32 |
|
33 |
text = "success"
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
-
|
43 |
|
44 |
return render,text
|
45 |
|
|
|
32 |
|
33 |
text = "success"
|
34 |
|
35 |
+
|
36 |
+
conf = results.boxes.conf
|
37 |
+
cls = results.boxes.cls
|
38 |
+
xywh = int(results.boxes.xywh)
|
39 |
+
x = xywh[0]
|
40 |
+
y = xywh[1]
|
41 |
|
42 |
+
text += (f"Detected {cls} with confidence {conf} at \n")
|
43 |
|
44 |
return render,text
|
45 |
|