aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index bfa92f9..12e2312 100644
--- a/utils.py
+++ b/utils.py
@@ -315,4 +315,5 @@ def get_style_preds(beer_id):
ret[num_to_style[idx]] = score
ret = normalize(ret)
- return ret \ No newline at end of file
+
+ return [{'name': x, 'score': y} for x, y in ret.items()] \ No newline at end of file