dylanplummer commited on
Commit
053d954
·
1 Parent(s): ebec3db

add beep detection outline

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -341,6 +341,11 @@ def inference(stream_url, start_time, end_time, beep_detection_on, event_length,
341
  trendline_scope='overall',
342
  template="plotly_dark")
343
 
 
 
 
 
 
344
  fig.update_layout(legend=dict(
345
  orientation="h",
346
  yanchor="bottom",
 
341
  trendline_scope='overall',
342
  template="plotly_dark")
343
 
344
+ if beep_detection_on:
345
+ # add vertical lines for beep event
346
+ fig.add_vrect(x0=event_start / fps, x1=event_end / fps, fillcolor="LightSalmon", opacity=0.25, layer="below", line_width=0)
347
+
348
+
349
  fig.update_layout(legend=dict(
350
  orientation="h",
351
  yanchor="bottom",