Martin Tomov commited on
Commit
1e713b8
·
verified ·
1 Parent(s): 0e8666e

DetectionResult misplaced colon

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,8 +37,8 @@ class DetectionResult:
37
  def from_dict(cls, detection_dict: Dict) -> 'DetectionResult':
38
  return cls(
39
  score=detection_dict['score'],
40
- label: detection_dict['label'],
41
- box: BoundingBox(
42
  xmin=detection_dict['box']['xmin'],
43
  ymin=detection_dict['box']['ymin'],
44
  xmax=detection_dict['box']['xmax'],
 
37
  def from_dict(cls, detection_dict: Dict) -> 'DetectionResult':
38
  return cls(
39
  score=detection_dict['score'],
40
+ label=detection_dict['label'],
41
+ box=BoundingBox(
42
  xmin=detection_dict['box']['xmin'],
43
  ymin=detection_dict['box']['ymin'],
44
  xmax=detection_dict['box']['xmax'],