Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
import re
|
| 3 |
import json
|
| 4 |
import random
|
|
@@ -212,13 +212,6 @@ button.cta:hover {
|
|
| 212 |
animation: cffall linear forwards;
|
| 213 |
z-index: 99999; pointer-events: none;
|
| 214 |
}
|
| 215 |
-
|
| 216 |
-
/* Fix Gradio Video styling to seamlessly blend with your glow theme */
|
| 217 |
-
#showcase-video {
|
| 218 |
-
background: #000000 !important;
|
| 219 |
-
border: 1px solid rgba(245, 166, 35, 0.3) !important;
|
| 220 |
-
border-radius: 8px !important;
|
| 221 |
-
}
|
| 222 |
"""
|
| 223 |
|
| 224 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
@@ -286,42 +279,40 @@ HERO_HTML = """
|
|
| 286 |
</div>
|
| 287 |
"""
|
| 288 |
|
| 289 |
-
|
| 290 |
<div style="
|
| 291 |
-
max-width: 850px; margin: 30px auto
|
| 292 |
-
background: #0a0a1a; border
|
| 293 |
-
border-
|
| 294 |
-
border-top-left-radius: 16px; border-top-right-radius: 16px;
|
| 295 |
font-family: 'Inter', sans-serif;
|
| 296 |
">
|
| 297 |
<h3 style="color: #ffc845; text-shadow: 0 0 10px rgba(245, 166, 35, 0.5); margin-top: 0; margin-bottom: 15px;">π¬ Submission Showcase & Verification</h3>
|
| 298 |
-
<
|
| 299 |
-
""
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
</a>
|
| 320 |
</div>
|
| 321 |
"""
|
| 322 |
|
| 323 |
QUICKSTART_LABEL_HTML = """
|
| 324 |
-
<div style="font-family:'Inter',sans-serif; padding:
|
| 325 |
<p style="
|
| 326 |
font-size:.75rem; color:#F5A623; font-weight:800;
|
| 327 |
letter-spacing:.15em; text-transform:uppercase; margin-bottom:10px;
|
|
@@ -780,21 +771,7 @@ def click_preset_ag(criteria_text):
|
|
| 780 |
with gr.Blocks(theme=gr.themes.Base(), css=CSS, title="Judges Copilot v2") as demo:
|
| 781 |
|
| 782 |
gr.HTML(HERO_HTML)
|
| 783 |
-
|
| 784 |
-
# Showcase Section Wrapper Layout
|
| 785 |
-
gr.HTML(SHOWCASE_TOP_HTML)
|
| 786 |
-
with gr.Row(style="max-width: 850px; margin: 0 auto; background: #0a0a1a; padding: 0 20px; border-left: 1px solid rgba(245, 166, 35, 0.2); border-right: 1px solid rgba(245, 166, 35, 0.2);"):
|
| 787 |
-
with gr.Column(scale=3, min_width=300):
|
| 788 |
-
gr.Video(
|
| 789 |
-
value="https://huggingface.co/spaces/build-small-hackathon/Judges-copilot/resolve/main/lv_0_20260616025553.mp4",
|
| 790 |
-
interactive=False,
|
| 791 |
-
show_label=False,
|
| 792 |
-
container=False,
|
| 793 |
-
elem_id="showcase-video"
|
| 794 |
-
)
|
| 795 |
-
with gr.Column(scale=2, min_width=250):
|
| 796 |
-
gr.HTML(SHOWCASE_SIDE_HTML)
|
| 797 |
-
|
| 798 |
gr.HTML(QUICKSTART_LABEL_HTML)
|
| 799 |
|
| 800 |
with gr.Row():
|
|
|
|
| 1 |
+
Import os
|
| 2 |
import re
|
| 3 |
import json
|
| 4 |
import random
|
|
|
|
| 212 |
animation: cffall linear forwards;
|
| 213 |
z-index: 99999; pointer-events: none;
|
| 214 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
"""
|
| 216 |
|
| 217 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 279 |
</div>
|
| 280 |
"""
|
| 281 |
|
| 282 |
+
SHOWCASE_HTML = """
|
| 283 |
<div style="
|
| 284 |
+
max-width: 850px; margin: 30px auto; padding: 20px;
|
| 285 |
+
background: #0a0a1a; border: 1px solid rgba(245, 166, 35, 0.2);
|
| 286 |
+
border-radius: 16px; box-shadow: 0 0 30px rgba(245, 166, 35, 0.05);
|
|
|
|
| 287 |
font-family: 'Inter', sans-serif;
|
| 288 |
">
|
| 289 |
<h3 style="color: #ffc845; text-shadow: 0 0 10px rgba(245, 166, 35, 0.5); margin-top: 0; margin-bottom: 15px;">π¬ Submission Showcase & Verification</h3>
|
| 290 |
+
<div style="display: flex; gap: 20px; flex-wrap: wrap;">
|
| 291 |
+
<div style="flex: 1.5; min-width: 300px;">
|
| 292 |
+
<video controls width="100%" style="border-radius: 8px; border: 1px solid rgba(245, 166, 35, 0.3);">
|
| 293 |
+
<source src="https://huggingface.co/spaces/build-small-hackathon/Judges-copilot/resolve/main/lv_0_20260615091053.mp4" type="video/mp4">
|
| 294 |
+
Your browser does not support the video tag.
|
| 295 |
+
</video>
|
| 296 |
+
</div>
|
| 297 |
+
<div style="flex: 1; min-width: 250px; display: flex; flex-direction: column; justify-content: center;">
|
| 298 |
+
<p style="color: #c0c0e8; font-size: 0.95rem; line-height: 1.6; margin-top: 0;">
|
| 299 |
+
Watch our local execution pipeline crawl layouts, extract syntax trees, and dynamically evaluate criteria weights completely off-the-grid.
|
| 300 |
+
</p>
|
| 301 |
+
<a href="https://x.com/i/status/2066355638200918066" target="_blank" style="
|
| 302 |
+
display: inline-block; text-align: center; background: rgba(245,166,35,.15);
|
| 303 |
+
color: #ffc845; border: 1px solid rgba(245,166,35,.5); border-radius: 8px;
|
| 304 |
+
padding: 10px 16px; font-weight: 700; text-decoration: none; transition: all 0.2s;
|
| 305 |
+
box-shadow: 0 0 12px rgba(245, 166, 35, 0.3);
|
| 306 |
+
" onmouseover="this.style.background='rgba(245,166,35,.25)'" onmouseout="this.style.background='rgba(245,166,35,.15)'">
|
| 307 |
+
π¦ View Official X Post
|
| 308 |
+
</a>
|
| 309 |
+
</div>
|
| 310 |
+
</div>
|
|
|
|
| 311 |
</div>
|
| 312 |
"""
|
| 313 |
|
| 314 |
QUICKSTART_LABEL_HTML = """
|
| 315 |
+
<div style="font-family:'Inter',sans-serif; padding:10px 0 10px;">
|
| 316 |
<p style="
|
| 317 |
font-size:.75rem; color:#F5A623; font-weight:800;
|
| 318 |
letter-spacing:.15em; text-transform:uppercase; margin-bottom:10px;
|
|
|
|
| 771 |
with gr.Blocks(theme=gr.themes.Base(), css=CSS, title="Judges Copilot v2") as demo:
|
| 772 |
|
| 773 |
gr.HTML(HERO_HTML)
|
| 774 |
+
gr.HTML(SHOWCASE_HTML) # Embedded Showcase Media Section
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 775 |
gr.HTML(QUICKSTART_LABEL_HTML)
|
| 776 |
|
| 777 |
with gr.Row():
|