beta3 commited on
Commit
5ebafde
·
verified ·
1 Parent(s): d00ed14

Update UI 3D colors

Browse files
Files changed (1) hide show
  1. app.py +31 -11
app.py CHANGED
@@ -69,8 +69,7 @@ WARNING_LONG = """
69
  <span class="warning-label">⚠ Processing time</span>
70
  Long videos can take significantly longer to process. The sample Sintel trailer
71
  (~52 s) may take <strong>8–10 minutes</strong> on the first run due to model
72
- warm-up and WhisperX initialization. Progress is shown below the Run button
73
- while inference is running.
74
  </div>
75
  """
76
 
@@ -244,22 +243,43 @@ def build_3d_figure(preds: np.ndarray, vmin_val: float = 0.5) -> str:
244
  margin=dict(l=0, r=0, t=8, b=70),
245
  title=dict(
246
  text="t = 0 s — drag to rotate · scroll to zoom",
247
- font=dict(color="#9ca3af", family=MONO, size=11),
248
  x=0.5,
249
  ),
250
  updatemenus=[],
251
  sliders=[dict(
252
- active=0, steps=slider_steps,
 
 
253
  currentvalue=dict(
254
- prefix="t = ", suffix=" s",
255
- font=dict(color="#9ca3af", family=MONO, size=11),
256
- visible=True, xanchor="center",
 
 
 
 
 
 
257
  ),
 
258
  pad=dict(b=8, t=8),
259
- len=0.85, x=0.5, xanchor="center", y=0,
260
- bgcolor="#111827", bordercolor="#1f2937",
261
- tickcolor="#374151",
262
- font=dict(color="#6b7280", family=MONO, size=10),
 
 
 
 
 
 
 
 
 
 
 
 
263
  )],
264
  ),
265
  )
 
69
  <span class="warning-label">⚠ Processing time</span>
70
  Long videos can take significantly longer to process. The sample Sintel trailer
71
  (~52 s) may take <strong>8–10 minutes</strong> on the first run due to model
72
+ warm-up and WhisperX initialization.
 
73
  </div>
74
  """
75
 
 
243
  margin=dict(l=0, r=0, t=8, b=70),
244
  title=dict(
245
  text="t = 0 s — drag to rotate · scroll to zoom",
246
+ font=dict(color="white", family=MONO, size=11),
247
  x=0.5,
248
  ),
249
  updatemenus=[],
250
  sliders=[dict(
251
+ active=0,
252
+ steps=slider_steps,
253
+
254
  currentvalue=dict(
255
+ prefix="t = ",
256
+ suffix=" s",
257
+ visible=True,
258
+ xanchor="center",
259
+ font=dict(
260
+ color="white",
261
+ family=MONO,
262
+ size=12
263
+ ),
264
  ),
265
+
266
  pad=dict(b=8, t=8),
267
+
268
+ len=0.85,
269
+ x=0.5,
270
+ xanchor="center",
271
+ y=0,
272
+
273
+ bgcolor="#111827",
274
+ activebgcolor="#ffffff",
275
+ bordercolor="#2a2a2a",
276
+ tickcolor="white",
277
+
278
+ font=dict(
279
+ color="white",
280
+ family=MONO,
281
+ size=10
282
+ ),
283
  )],
284
  ),
285
  )