Martin Tomov commited on
Commit
37ee381
·
verified ·
1 Parent(s): 02e5a68

SyntaxError misplaced comma

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -197,7 +197,7 @@ def process_image(image):
197
  yellow_background_with_insects = create_yellow_background_with_insects(np.array(original_image), detections)
198
  detections_json = detections_to_json(detections)
199
  json_output_path = "insect_detections.json"
200
- with open(json_output_path, 'w') as json_file,
201
  json.dump(detections_json, json_file, indent=4)
202
  return yellow_background_with_insects, json.dumps(detections_json, separators=(',', ':'))
203
 
 
197
  yellow_background_with_insects = create_yellow_background_with_insects(np.array(original_image), detections)
198
  detections_json = detections_to_json(detections)
199
  json_output_path = "insect_detections.json"
200
+ with open(json_output_path, 'w') as json_file:
201
  json.dump(detections_json, json_file, indent=4)
202
  return yellow_background_with_insects, json.dumps(detections_json, separators=(',', ':'))
203