You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Extract and analyze the text content from your documents using Optical Character Recognition (OCR). This captures all written information including tables, forms, and structured data. Essential for text-heavy documents like contracts, invoices, and reports. When enabled, the AI can understand and extract information from the document's text content."
202
202
)
203
203
204
204
include_images=st.checkbox(
205
-
"🖼️ Split in Images and use them in GPT Extraction",
help="Process document pages as images so the AI can visually understand layouts, charts, diagrams, handwritten notes, and visual elements that OCR might miss. This is particularly valuable for forms with checkboxes, complex layouts, signatures, charts, or documents where visual context matters. Combines with OCR for the most comprehensive analysis."
208
208
)
209
209
210
210
# Validation: Ensure at least one of OCR or Images is enabled
211
211
ifnotinclude_ocrandnotinclude_images:
212
-
st.error("⚠️ **Validation Error**: You must enable at least one of 'Include OCR Text' or 'Include Images' for GPT extraction to work properly.")
212
+
st.error("⚠️ **Validation Error**: You must enable at least one of 'OCR' or 'GPT Vision' for GPT extraction to work properly.")
0 commit comments