irkan commited on
Commit
81aaaaf
·
verified ·
1 Parent(s): 7e4d255

Deploy deathmatch from 28e3a4c

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -94,7 +94,12 @@ button.primary, .dm-primary button {
94
  font-size: 18px !important; text-transform: uppercase !important;
95
  box-shadow: 0 14px 40px rgba(224,48,60,0.32) !important;
96
  }
97
- .dm-commentary { padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: var(--dm-panel); }
 
 
 
 
 
98
  .animate-status {
99
  margin: 14px 0 0; padding: 16px 18px; border-radius: 16px; font-size: 14px; line-height: 1.55;
100
  }
@@ -338,7 +343,7 @@ with gr.Blocks(title="Celebrity Deathmatch") as demo:
338
  gr.Markdown("### The keyframe reel")
339
  reel = gr.Gallery(label="Fight reel", columns=5, height=320,
340
  object_fit="cover")
341
- commentary = gr.Markdown()
342
  animate_btn = gr.Button("🎬 Animate the full fight", variant="primary",
343
  interactive=False, elem_classes=["dm-primary"])
344
  animate_status = gr.HTML()
 
94
  font-size: 18px !important; text-transform: uppercase !important;
95
  box-shadow: 0 14px 40px rgba(224,48,60,0.32) !important;
96
  }
97
+ .dm-commentary { padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(242,176,48,0.28);
98
+ background: var(--dm-panel) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
99
+ /* Force fire-yellow commentary text so it stays legible regardless of the
100
+ visitor's light/dark browser theme (Gradio markdown otherwise inherits a
101
+ theme color that can vanish on a light background). */
102
+ .dm-commentary, .dm-commentary * { color: #ffc233 !important; }
103
  .animate-status {
104
  margin: 14px 0 0; padding: 16px 18px; border-radius: 16px; font-size: 14px; line-height: 1.55;
105
  }
 
343
  gr.Markdown("### The keyframe reel")
344
  reel = gr.Gallery(label="Fight reel", columns=5, height=320,
345
  object_fit="cover")
346
+ commentary = gr.Markdown(elem_classes=["dm-commentary"])
347
  animate_btn = gr.Button("🎬 Animate the full fight", variant="primary",
348
  interactive=False, elem_classes=["dm-primary"])
349
  animate_status = gr.HTML()