Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,7 +181,7 @@ def extract_text_from_file(
|
|
| 181 |
# Retrieve file from S3 and determine content type
|
| 182 |
content_type = get_content_type_from_s3(file_key)
|
| 183 |
file_data, _ = fetch_file_from_s3(file_key)
|
| 184 |
-
extracted_data
|
| 185 |
|
| 186 |
# Build document for insertion
|
| 187 |
document = {
|
|
|
|
| 181 |
# Retrieve file from S3 and determine content type
|
| 182 |
content_type = get_content_type_from_s3(file_key)
|
| 183 |
file_data, _ = fetch_file_from_s3(file_key)
|
| 184 |
+
extracted_data,base64dataresp = extract_invoice_data(file_data, content_type, json_schema)
|
| 185 |
|
| 186 |
# Build document for insertion
|
| 187 |
document = {
|