Upload 4 files
Browse files- Dockerfile +31 -0
- README.md +58 -10
- newapp.py +0 -0
- requirements.txt +16 -0
Dockerfile
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
tesseract-ocr \
|
6 |
+
tesseract-ocr-eng \
|
7 |
+
&& rm -rf /var/lib/apt/lists/*
|
8 |
+
|
9 |
+
# Create a non-root user
|
10 |
+
RUN useradd -m -u 1000 user
|
11 |
+
USER user
|
12 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
13 |
+
|
14 |
+
# Set working directory
|
15 |
+
WORKDIR /app
|
16 |
+
|
17 |
+
# Copy requirements first to leverage Docker cache
|
18 |
+
COPY --chown=user requirements.txt .
|
19 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
20 |
+
|
21 |
+
# Download spaCy model
|
22 |
+
RUN python -m spacy download en_core_web_md
|
23 |
+
|
24 |
+
# Copy the rest of the application
|
25 |
+
COPY --chown=user . .
|
26 |
+
|
27 |
+
# Expose the port the app runs on
|
28 |
+
EXPOSE 7860
|
29 |
+
|
30 |
+
# Command to run the application
|
31 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "newapp:app"]
|
README.md
CHANGED
@@ -1,10 +1,58 @@
|
|
1 |
-
---
|
2 |
-
title: Property Verification
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
-
sdk: docker
|
7 |
-
pinned: false
|
8 |
-
---
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Property Verification Bot
|
3 |
+
emoji: 🏠
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
---
|
9 |
+
|
10 |
+
# Property Verification Bot
|
11 |
+
|
12 |
+
A comprehensive property verification system that analyzes property listings for authenticity and potential fraud. The system uses multiple AI models to verify various aspects of property listings including:
|
13 |
+
|
14 |
+
- Image analysis
|
15 |
+
- Document verification
|
16 |
+
- Location verification
|
17 |
+
- Price analysis
|
18 |
+
- Legal document analysis
|
19 |
+
- Property specification validation
|
20 |
+
|
21 |
+
## Features
|
22 |
+
|
23 |
+
- Image authenticity detection
|
24 |
+
- Document verification and analysis
|
25 |
+
- Location verification using geocoding
|
26 |
+
- Price analysis and market value estimation
|
27 |
+
- Legal document analysis
|
28 |
+
- Property specification validation
|
29 |
+
- Fraud detection
|
30 |
+
- Trust score generation
|
31 |
+
|
32 |
+
## How to Use
|
33 |
+
|
34 |
+
1. Submit property details including:
|
35 |
+
- Property images
|
36 |
+
- Property documents
|
37 |
+
- Location information
|
38 |
+
- Property specifications
|
39 |
+
- Market value
|
40 |
+
|
41 |
+
2. The system will analyze the provided information and generate:
|
42 |
+
- Trust score
|
43 |
+
- Fraud detection results
|
44 |
+
- Verification status
|
45 |
+
- Detailed analysis report
|
46 |
+
|
47 |
+
## Technical Details
|
48 |
+
|
49 |
+
The system uses multiple AI models and techniques:
|
50 |
+
- CLIP for image analysis
|
51 |
+
- BART for text analysis
|
52 |
+
- spaCy for NLP processing
|
53 |
+
- Sentence Transformers for semantic analysis
|
54 |
+
- OCR for document processing
|
55 |
+
|
56 |
+
## License
|
57 |
+
|
58 |
+
MIT License
|
newapp.py
ADDED
The diff for this file is too large to render.
See raw diff
|
|
requirements.txt
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
flask==2.3.3
|
2 |
+
flask-cors==4.0.0
|
3 |
+
torch==2.1.0
|
4 |
+
transformers==4.34.0
|
5 |
+
Pillow==10.0.0
|
6 |
+
numpy==1.24.3
|
7 |
+
PyMuPDF==1.23.8
|
8 |
+
geopy==2.4.0
|
9 |
+
sentence-transformers==2.2.2
|
10 |
+
spacy==3.7.2
|
11 |
+
pytesseract==0.3.10
|
12 |
+
langdetect==1.0.9
|
13 |
+
deep-translator==1.11.4
|
14 |
+
requests==2.31.0
|
15 |
+
python-dotenv==1.0.0
|
16 |
+
gunicorn==21.2.0
|