Martin Tomov commited on
Commit
58b9a20
·
verified ·
1 Parent(s): fa0c33b

syntax error fix

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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, rle.append(count)
 
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):