Update app.py
Browse files
app.py
CHANGED
|
@@ -348,7 +348,9 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 348 |
gr.Markdown(
|
| 349 |
"""
|
| 350 |
# 📄 Document Forgery Detection
|
| 351 |
-
Upload a document image or PDF to detect and classify forgeries.
|
|
|
|
|
|
|
| 352 |
"""
|
| 353 |
)
|
| 354 |
|
|
@@ -405,13 +407,13 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 405 |
gr.HTML(
|
| 406 |
"""
|
| 407 |
<div style='padding:12px; border:1px solid #444; border-radius:10px; background:var(--background-fill-primary);'>
|
| 408 |
-
<p style='margin-top:0; margin-bottom:
|
| 409 |
-
<p style='margin:
|
| 410 |
|
| 411 |
-
<p style='margin-top:
|
| 412 |
-
<p style='margin:
|
| 413 |
|
| 414 |
-
<p style='margin-top:
|
| 415 |
</div>
|
| 416 |
"""
|
| 417 |
)
|
|
|
|
| 348 |
gr.Markdown(
|
| 349 |
"""
|
| 350 |
# 📄 Document Forgery Detection
|
| 351 |
+
Upload a document image or PDF to detect and classify forgeries using deep learning. The system identifies Copy-Move, Splicing, and Text Substitution manipulations with precise localization and confidence scores.
|
| 352 |
+
|
| 353 |
+
---
|
| 354 |
"""
|
| 355 |
)
|
| 356 |
|
|
|
|
| 407 |
gr.HTML(
|
| 408 |
"""
|
| 409 |
<div style='padding:12px; border:1px solid #444; border-radius:10px; background:var(--background-fill-primary);'>
|
| 410 |
+
<p style='margin-top:0; margin-bottom:4px; font-size:1.05em;'><b>Localization:</b> MobileNetV3-Small + UNet</p>
|
| 411 |
+
<p style='margin:0 0 8px 0; font-size:0.9em; opacity:0.85;'>Dice: 62.12% | IoU: 45.06% | Precision: 70.77% | Recall: 55.36%</p>
|
| 412 |
|
| 413 |
+
<p style='margin-top:8px; margin-bottom:4px; font-size:1.05em;'><b>Classification:</b> LightGBM with 526 features</p>
|
| 414 |
+
<p style='margin:0 0 8px 0; font-size:0.9em; opacity:0.85;'>Train Accuracy: 90.53% | Val Accuracy: 88.97%</p>
|
| 415 |
|
| 416 |
+
<p style='margin-top:8px; margin-bottom:0; font-size:1.05em;'><b>Training:</b> 140K samples from DocTamper dataset</p>
|
| 417 |
</div>
|
| 418 |
"""
|
| 419 |
)
|