Skip to content

Commit c30aa31

Browse files
authoredJun 7, 2020
Merge pull request #11 from dlsaavedra/patch-3
Update PredictionController.py
2 parents ec2852f + 4a527e4 commit c30aa31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎app/http/controllers/api/PredictionController.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def post(self):
112112
{
113113
"class": labels_1[boxes.label],
114114
"label": "Soiling Fault",
115-
"score": boxes.get_score(),
115+
"score": str(boxes.get_score()),
116116
"xmax": boxes.xmax,
117117
"xmin": boxes.xmin,
118118
"ymax": boxes.ymax,
@@ -124,7 +124,7 @@ def post(self):
124124
item["objects"].append(
125125
{
126126
"class": labels_2[boxes.label],
127-
"score": boxes.get_score(),
127+
"score": str(boxes.get_score()),
128128
"label": "Diode Fault",
129129
"xmax": boxes.xmax,
130130
"xmin": boxes.xmin,

0 commit comments

Comments
 (0)