YANAbillionarie commited on
Commit
bddf1b1
Β·
verified Β·
1 Parent(s): a8be20b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +50 -27
app.py CHANGED
@@ -212,6 +212,13 @@ button.cta:hover {
212
  animation: cffall linear forwards;
213
  z-index: 99999; pointer-events: none;
214
  }
 
 
 
 
 
 
 
215
  """
216
 
217
  # ═══════════════════════════════════════════════════════════════
@@ -279,40 +286,42 @@ HERO_HTML = """
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 preload="auto" playsinline muted style="width: 100%; border-radius: 8px; border: 1px solid rgba(245, 166, 35, 0.3); background: #000;">
293
- <source src="https://huggingface.co/spaces/build-small-hackathon/Judges-copilot/resolve/main/lv_0_20260616025553.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,7 +780,21 @@ def click_preset_ag(criteria_text):
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():
 
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
  </div>
287
  """
288
 
289
+ SHOWCASE_TOP_HTML = """
290
  <div style="
291
+ max-width: 850px; margin: 30px auto 0 auto; padding: 20px 20px 5px 20px;
292
+ background: #0a0a1a; border-top: 1px solid rgba(245, 166, 35, 0.2);
293
+ border-left: 1px solid rgba(245, 166, 35, 0.2); border-right: 1px solid rgba(245, 166, 35, 0.2);
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
+ </div>
299
+ """
300
+
301
+ SHOWCASE_SIDE_HTML = """
302
+ <div style="
303
+ height: 100%; display: flex; flex-direction: column; justify-content: center;
304
+ font-family: 'Inter', sans-serif; padding: 10px 20px 20px 20px;
305
+ background: #0a0a1a; border-bottom: 1px solid rgba(245, 166, 35, 0.2);
306
+ border-left: 1px solid rgba(245, 166, 35, 0.2); border-right: 1px solid rgba(245, 166, 35, 0.2);
307
+ border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
308
+ ">
309
+ <p style="color: #c0c0e8; font-size: 0.95rem; line-height: 1.6; margin-top: 0; margin-bottom: 20px;">
310
+ Watch our local execution pipeline crawl layouts, extract syntax trees, and dynamically evaluate criteria weights completely off-the-grid.
311
+ </p>
312
+ <a href="https://x.com/i/status/2066355638200918066" target="_blank" style="
313
+ display: inline-block; text-align: center; background: rgba(245,166,35,.15);
314
+ color: #ffc845; border: 1px solid rgba(245,166,35,.5); border-radius: 8px;
315
+ padding: 10px 16px; font-weight: 700; text-decoration: none; transition: all 0.2s;
316
+ box-shadow: 0 0 12px rgba(245, 166, 35, 0.3);
317
+ " onmouseover="this.style.background='rgba(245,166,35,.25)'" onmouseout="this.style.background='rgba(245,166,35,.15)'">
318
+ 🐦 View Official X Post
319
+ </a>
320
  </div>
321
  """
322
 
323
  QUICKSTART_LABEL_HTML = """
324
+ <div style="font-family:'Inter',sans-serif; padding:30px 0 10px;">
325
  <p style="
326
  font-size:.75rem; color:#F5A623; font-weight:800;
327
  letter-spacing:.15em; text-transform:uppercase; margin-bottom:10px;
 
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():