user-agent commited on
Commit
3bda041
1 Parent(s): 64af198

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -22,7 +22,13 @@ COLOURS_DICT = data['color_mapping']
22
 
23
  def shot(input, category):
24
  subColour,mainColour,score = get_colour(ast.literal_eval(str(input)),category)
25
- return subColour,mainColour,score
 
 
 
 
 
 
26
 
27
 
28
 
 
22
 
23
  def shot(input, category):
24
  subColour,mainColour,score = get_colour(ast.literal_eval(str(input)),category)
25
+ return {
26
+ "colors":[
27
+ "main":mainColour,
28
+ "sub":subColour,
29
+ "score":score
30
+ ]
31
+ }
32
 
33
 
34