Update extract_insights.py
Browse files- extract_insights.py +6 -6
extract_insights.py
CHANGED
|
@@ -208,13 +208,13 @@ 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 |
-
insert_response = (
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
)
|
| 216 |
-
|
| 217 |
|
|
|
|
| 218 |
# try:
|
| 219 |
|
| 220 |
# openai_tasks = []
|
|
|
|
| 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:
|
| 219 |
|
| 220 |
# openai_tasks = []
|