Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -69,6 +69,7 @@ def shot(input, category, level):
|
|
69 |
common_result = get_predicted_attributes(ast.literal_eval(str(input)), category)
|
70 |
output_dict['attributes'] = common_result
|
71 |
output_dict['subcategory'] = category
|
|
|
72 |
output_dict['description'] = get_product_description(category=category, attributes=common_result)
|
73 |
|
74 |
# # Convert the dictionary to a JSON-serializable format
|
|
|
69 |
common_result = get_predicted_attributes(ast.literal_eval(str(input)), category)
|
70 |
output_dict['attributes'] = common_result
|
71 |
output_dict['subcategory'] = category
|
72 |
+
print(common_result)
|
73 |
output_dict['description'] = get_product_description(category=category, attributes=common_result)
|
74 |
|
75 |
# # Convert the dictionary to a JSON-serializable format
|