How yasminacarlafernandez/lex_ia works
LexIA is a Streamlit app for preliminary contract review: a user uploads a document, the app extracts text, calls the contract agent, and displays its report. The sampled app extracts PDF, DOCX, and TXT content directly; the separate PDF/DOCX reader helpers are not called in that flow. The agent excerpt builds a fixed Spanish report template, rather than showing Gemini analysis or bilingual output. Those capabilities are described in the README, but their implementation and wiring are not evidenced in the sampled source.
Main entry points: app.py Upload and display · contract_agent.py Report template
Components 7
User interface
- Upload and display
app.py
Document ingestion
- Text extraction
app.py - PDF reader helper
utils/pdf_reader.py - DOCX reader helper
utils/docx_reader.py
Contract reporting
- Report template
agents/contract_agent.py
Other components
- Contract reviewer
- Google Gemini
Connections 6
- Contract reviewer → Upload and display: uploads contract
README.md - Upload and display → Text extraction: extracts text
app.py - Upload and display → Report template: calls analysis
app.py - Report template → Upload and display: returns report
app.py - Upload and display → Contract reviewer: displays report
app.py - Report template → Google Gemini: uses AI analysis