This Streamlit web application analyzes Spanish mortgage contracts for potentially abusive practices using OCR and the Anthropic AI API.
- Upload PDF files containing Spanish mortgage contracts
- Perform OCR to extract text from the PDF
- Analyze the extracted text for potentially abusive practices using Anthropic AI
- Display the analysis results, highlighting any identified issues
- Docker and Docker Compose
- Anthropic API key
-
Clone this repository:
git clone https://github.com/yourusername/spanish-mortgage-analyzer.git cd spanish-mortgage-analyzer -
Create a
.envfile in the project root and add your Anthropic API key:ANTHROPIC_API_KEY=your_api_key_here -
Build and run the Docker container:
docker-compose up --build -
Open your web browser and navigate to
http://localhost:8501to access the Streamlit app.
- Upload a PDF file containing a Spanish mortgage contract.
- Wait for the OCR process to complete and the AI analysis to finish.
- Review the analysis results, which will highlight any potentially abusive practices found in the contract.
This tool is for informational purposes only and should not be considered legal advice. Always consult with a qualified legal professional for advice on your specific situation.
This project is licensed under the MIT License.