Spaces:
Running
on
Zero
Running
on
Zero
Martin Tomov
commited on
SyntaxError misplaced comma
Browse files
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 |
|