Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ ATTRIBUTES_DICT = attributes_data['attribute_mapping']
|
|
| 36 |
def shot(input, category):
|
| 37 |
subColour,mainColour,score = get_colour(ast.literal_eval(str(input)),category)
|
| 38 |
common_result = get_predicted_attributes(ast.literal_eval(str(input)),category)
|
| 39 |
-
openai_parsed_response = get_openAI_tags(ast.literal_eval(str(input)))
|
| 40 |
return {
|
| 41 |
"colors":{
|
| 42 |
"main":mainColour,
|
|
@@ -44,7 +44,7 @@ def shot(input, category):
|
|
| 44 |
"score":round(score*100,2)
|
| 45 |
},
|
| 46 |
"attributes":common_result,
|
| 47 |
-
"image_mapping":openai_parsed_response
|
| 48 |
}
|
| 49 |
|
| 50 |
|
|
|
|
| 36 |
def shot(input, category):
|
| 37 |
subColour,mainColour,score = get_colour(ast.literal_eval(str(input)),category)
|
| 38 |
common_result = get_predicted_attributes(ast.literal_eval(str(input)),category)
|
| 39 |
+
# openai_parsed_response = get_openAI_tags(ast.literal_eval(str(input)))
|
| 40 |
return {
|
| 41 |
"colors":{
|
| 42 |
"main":mainColour,
|
|
|
|
| 44 |
"score":round(score*100,2)
|
| 45 |
},
|
| 46 |
"attributes":common_result,
|
| 47 |
+
# "image_mapping":openai_parsed_response
|
| 48 |
}
|
| 49 |
|
| 50 |
|