Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,12 +135,14 @@ def extract_invoice_gemini(page: fitz.Page) -> Optional[str]:
|
|
| 135 |
img = Image.open(io.BytesIO(pix.tobytes("png")))
|
| 136 |
|
| 137 |
prompt = """
|
| 138 |
-
Extract the invoice number from this invoice image
|
|
|
|
| 139 |
|
| 140 |
Look for:
|
| 141 |
- Invoice No
|
| 142 |
- Bill No
|
| 143 |
- Tax Invoice No
|
|
|
|
| 144 |
- Purchase Order No (only if invoice not present)
|
| 145 |
|
| 146 |
Return ONLY the identifier.
|
|
|
|
| 135 |
img = Image.open(io.BytesIO(pix.tobytes("png")))
|
| 136 |
|
| 137 |
prompt = """
|
| 138 |
+
Extract the invoice number from this invoice image,
|
| 139 |
+
also consider for reading an Indian GST e-Invoice.
|
| 140 |
|
| 141 |
Look for:
|
| 142 |
- Invoice No
|
| 143 |
- Bill No
|
| 144 |
- Tax Invoice No
|
| 145 |
+
- Document No
|
| 146 |
- Purchase Order No (only if invoice not present)
|
| 147 |
|
| 148 |
Return ONLY the identifier.
|