Spaces:
Sleeping
Sleeping
Update extract_and_store_supabase.py
Browse files
extract_and_store_supabase.py
CHANGED
@@ -71,6 +71,7 @@ def extract_structure_store_message(user_id:str,message_id:str , attachment_id:s
|
|
71 |
.eq('email',email)
|
72 |
.execute()
|
73 |
)
|
|
|
74 |
print('Printing entities')
|
75 |
print(entities)
|
76 |
if entities is not None:
|
@@ -87,5 +88,6 @@ def extract_structure_store_message(user_id:str,message_id:str , attachment_id:s
|
|
87 |
.insert(document_entities)
|
88 |
.execute()
|
89 |
)
|
|
|
90 |
except Exception as e:
|
91 |
print(f"Error downloading or encoding file: {e}")
|
|
|
71 |
.eq('email',email)
|
72 |
.execute()
|
73 |
)
|
74 |
+
print(insert_data_ocr_text_response)
|
75 |
print('Printing entities')
|
76 |
print(entities)
|
77 |
if entities is not None:
|
|
|
88 |
.insert(document_entities)
|
89 |
.execute()
|
90 |
)
|
91 |
+
print(insert_data_response)
|
92 |
except Exception as e:
|
93 |
print(f"Error downloading or encoding file: {e}")
|