Spaces:
Runtime error
Runtime error
Martin Tomov
commited on
syntax error fix
Browse files
app.py
CHANGED
|
@@ -164,7 +164,8 @@ def run_length_encoding(mask):
|
|
| 164 |
rle.append(count)
|
| 165 |
count = 1
|
| 166 |
last_val = pixel
|
| 167 |
-
if count > 0
|
|
|
|
| 168 |
return rle
|
| 169 |
|
| 170 |
def detections_to_json(detections):
|
|
|
|
| 164 |
rle.append(count)
|
| 165 |
count = 1
|
| 166 |
last_val = pixel
|
| 167 |
+
if count > 0:
|
| 168 |
+
rle.append(count)
|
| 169 |
return rle
|
| 170 |
|
| 171 |
def detections_to_json(detections):
|