Spaces:
Sleeping
Sleeping
shamimjony1000
commited on
Commit
·
4c5865a
1
Parent(s):
80c0d03
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def detect_objects_on_image(image_path):
|
|
24 |
}
|
25 |
|
26 |
# Add more space around the text
|
27 |
-
text_padding =
|
28 |
|
29 |
for box in result.boxes:
|
30 |
x1, y1, x2, y2 = [round(x) for x in box.xyxy[0].tolist()]
|
|
|
24 |
}
|
25 |
|
26 |
# Add more space around the text
|
27 |
+
text_padding = 1
|
28 |
|
29 |
for box in result.boxes:
|
30 |
x1, y1, x2, y2 = [round(x) for x in box.xyxy[0].tolist()]
|