Spaces:
Runtime error
Runtime error
Martin Tomov
commited on
DetectionResult misplaced colon
Browse files
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
|
| 41 |
-
box
|
| 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'],
|