Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def extract_invoice_data(file_data, content_type, json_schema):
|
|
| 99 |
Extracts data from a PDF (converted to images) or an image.
|
| 100 |
Only PDFs with 1 or 2 pages are allowed.
|
| 101 |
"""
|
| 102 |
-
system_prompt = "You are an expert in document data extraction.
|
| 103 |
base64_images = []
|
| 104 |
|
| 105 |
if content_type == "application/pdf":
|
|
|
|
| 99 |
Extracts data from a PDF (converted to images) or an image.
|
| 100 |
Only PDFs with 1 or 2 pages are allowed.
|
| 101 |
"""
|
| 102 |
+
system_prompt = "You are an expert in document data extraction."
|
| 103 |
base64_images = []
|
| 104 |
|
| 105 |
if content_type == "application/pdf":
|