Update app.py
Browse files
app.py
CHANGED
|
@@ -400,6 +400,22 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 400 |
gr.Markdown("---")
|
| 401 |
|
| 402 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
with gr.Column(scale=1):
|
| 404 |
gr.Markdown("### Model Performance")
|
| 405 |
gr.HTML(
|
|
@@ -419,22 +435,6 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 419 |
</div>
|
| 420 |
"""
|
| 421 |
)
|
| 422 |
-
|
| 423 |
-
with gr.Column(scale=1):
|
| 424 |
-
gr.Markdown("### Model Architecture")
|
| 425 |
-
gr.HTML(
|
| 426 |
-
"""
|
| 427 |
-
<div style='padding:12px; border:1px solid #444; border-radius:10px; background:var(--background-fill-primary);'>
|
| 428 |
-
<p style='margin-top:0; margin-bottom:8px;'><b>Localization:</b> MobileNetV3-Small + UNet</p>
|
| 429 |
-
<p style='margin:4px 0; font-size:0.9em;'>Dice: 62.12% | IoU: 45.06% | Precision: 70.77% | Recall: 55.36%</p>
|
| 430 |
-
|
| 431 |
-
<p style='margin-top:12px; margin-bottom:8px;'><b>Classification:</b> LightGBM with 526 features</p>
|
| 432 |
-
<p style='margin:4px 0; font-size:0.9em;'>Train Accuracy: 90.53% | Val Accuracy: 88.97%</p>
|
| 433 |
-
|
| 434 |
-
<p style='margin-top:12px; margin-bottom:0;'><b>Training:</b> 140K samples from DocTamper dataset</p>
|
| 435 |
-
</div>
|
| 436 |
-
"""
|
| 437 |
-
)
|
| 438 |
|
| 439 |
# Event handlers
|
| 440 |
analyze_btn.click(
|
|
|
|
| 400 |
gr.Markdown("---")
|
| 401 |
|
| 402 |
with gr.Row():
|
| 403 |
+
with gr.Column(scale=1):
|
| 404 |
+
gr.Markdown("### Model Architecture")
|
| 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:8px;'><b>Localization:</b> MobileNetV3-Small + UNet</p>
|
| 409 |
+
<p style='margin:4px 0; font-size:0.9em;'>Dice: 62.12% | IoU: 45.06% | Precision: 70.77% | Recall: 55.36%</p>
|
| 410 |
+
|
| 411 |
+
<p style='margin-top:12px; margin-bottom:8px;'><b>Classification:</b> LightGBM with 526 features</p>
|
| 412 |
+
<p style='margin:4px 0; font-size:0.9em;'>Train Accuracy: 90.53% | Val Accuracy: 88.97%</p>
|
| 413 |
+
|
| 414 |
+
<p style='margin-top:12px; margin-bottom:0;'><b>Training:</b> 140K samples from DocTamper dataset</p>
|
| 415 |
+
</div>
|
| 416 |
+
"""
|
| 417 |
+
)
|
| 418 |
+
|
| 419 |
with gr.Column(scale=1):
|
| 420 |
gr.Markdown("### Model Performance")
|
| 421 |
gr.HTML(
|
|
|
|
| 435 |
</div>
|
| 436 |
"""
|
| 437 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 438 |
|
| 439 |
# Event handlers
|
| 440 |
analyze_btn.click(
|