Spaces:
Sleeping
Sleeping
Update extract_insights.py
Browse files- extract_insights.py +2 -2
extract_insights.py
CHANGED
@@ -90,8 +90,8 @@ async def extract_fashion_categories(user_id:str , email:str, message_id:str):
|
|
90 |
print("printing response.data")
|
91 |
print(response.data)
|
92 |
|
93 |
-
items = response.data[0]
|
94 |
-
values = response.data[
|
95 |
combined_json = combine_json_arrays(items,values)
|
96 |
print(combined_json)
|
97 |
# prompt = prompt_for_categorization(combined_json)
|
|
|
90 |
print("printing response.data")
|
91 |
print(response.data)
|
92 |
|
93 |
+
items = response.data[0].get('line_item_description',None)
|
94 |
+
values = response.data[0].get('line_item_amount',None)
|
95 |
combined_json = combine_json_arrays(items,values)
|
96 |
print(combined_json)
|
97 |
# prompt = prompt_for_categorization(combined_json)
|