Spaces:
Sleeping
Sleeping
Improve header styling with robust gr.HTML
Browse files
app.py
CHANGED
|
@@ -93,12 +93,15 @@ css_styling = """
|
|
| 93 |
"""
|
| 94 |
|
| 95 |
with gr.Blocks() as demo:
|
| 96 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
"""
|
| 98 |
-
# 🔍 DiffLens AI — Visual Comparison & Change Analysis
|
| 99 |
-
Compare **Before** and **After** images of structures, scenes, or objects. The system aligns the images, detects change zones, runs segmentation (SAM2) and semantic filtering (DINOv2), and writes a detailed natural language explanation of changes.
|
| 100 |
-
""",
|
| 101 |
-
elem_classes="header"
|
| 102 |
)
|
| 103 |
|
| 104 |
with gr.Row():
|
|
|
|
| 93 |
"""
|
| 94 |
|
| 95 |
with gr.Blocks() as demo:
|
| 96 |
+
gr.HTML(
|
| 97 |
+
"""
|
| 98 |
+
<div style="text-align: center; max-width: 800px; margin: 0 auto 2rem auto; font-family: system-ui, -apple-system, sans-serif;">
|
| 99 |
+
<h1 style="font-size: 2.2rem; color: #4f46e5; margin-bottom: 0.5rem; font-weight: 700;">🔍 DiffLens AI — Visual Comparison & Change Analysis</h1>
|
| 100 |
+
<p style="font-size: 1.1rem; color: #4b5563; line-height: 1.6; margin: 0;">
|
| 101 |
+
Compare <b>Before</b> and <b>After</b> images of structures, scenes, or objects. The system aligns the images, detects change zones, runs segmentation (SAM2) and semantic filtering (DINOv2), and writes a detailed natural language explanation of changes.
|
| 102 |
+
</p>
|
| 103 |
+
</div>
|
| 104 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
)
|
| 106 |
|
| 107 |
with gr.Row():
|