Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,8 +30,9 @@ except Exception as e:
|
|
| 30 |
raise e
|
| 31 |
|
| 32 |
# Helper functions
|
|
|
|
| 33 |
def get_random_color():
|
| 34 |
-
return tuple(np.random.randint(0, 256, 3).tolist()
|
| 35 |
|
| 36 |
def draw_ocr_bbox(image, boxes, colors):
|
| 37 |
for i in range(len(boxes)):
|
|
|
|
| 30 |
raise e
|
| 31 |
|
| 32 |
# Helper functions
|
| 33 |
+
# Get a random color (used for drawing bounding boxes, if needed)
|
| 34 |
def get_random_color():
|
| 35 |
+
return tuple(np.random.randint(0, 256, 3).tolist()) # Fixed line
|
| 36 |
|
| 37 |
def draw_ocr_bbox(image, boxes, colors):
|
| 38 |
for i in range(len(boxes)):
|