Update extract_insights.py
Browse files- extract_insights.py +5 -5
extract_insights.py
CHANGED
@@ -208,11 +208,11 @@ async def process_synchronous_job(user_id,email,message_id,raw_text):
|
|
208 |
insert_data['email']=email
|
209 |
insert_data['user_id'] = user_id
|
210 |
insert_data['message_id'] = message_id
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
|
217 |
return insert_data
|
218 |
# try:
|
|
|
208 |
insert_data['email']=email
|
209 |
insert_data['user_id'] = user_id
|
210 |
insert_data['message_id'] = message_id
|
211 |
+
insert_response = (
|
212 |
+
supabase.table("receipt_radar_structured_data_duplicate")
|
213 |
+
.insert(json.loads(completion.choices[0].message.content))
|
214 |
+
.execute()
|
215 |
+
)
|
216 |
|
217 |
return insert_data
|
218 |
# try:
|