duongthienz commited on
Commit
8be7b66
·
verified ·
1 Parent(s): 11b2322

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -875,16 +875,9 @@ try:
875
  with timeline:
876
  timeline_df = speakers_dataFrame.copy()
877
  timeline_df["Resource"] = timeline_df["Resource"].apply(lambda s: get_display_name(s, currFileIndex))
878
- base = dt.datetime.combine(dt.date.today(), dt.time.min)
879
- timeline_df["Start"] = timeline_df["Start"].apply(
880
- lambda s: base + dt.timedelta(seconds=float(s))
881
- )
882
- timeline_df["Finish"] = timeline_df["Finish"].apply(
883
- lambda s: base + dt.timedelta(seconds=float(s))
884
- )
885
  fig_la = px.timeline(timeline_df, x_start="Start", x_end="Finish", y="Resource", color="Resource",title="Timeline of Audio with Speakers",
886
  color_discrete_sequence=speakerColors)
887
- fig_la.update_yaxes(autorange="reversed")
888
 
889
  hMax = int(currTotalTime//3600)
890
  mMax = int(currTotalTime%3600//60)
 
875
  with timeline:
876
  timeline_df = speakers_dataFrame.copy()
877
  timeline_df["Resource"] = timeline_df["Resource"].apply(lambda s: get_display_name(s, currFileIndex))
 
 
 
 
 
 
 
878
  fig_la = px.timeline(timeline_df, x_start="Start", x_end="Finish", y="Resource", color="Resource",title="Timeline of Audio with Speakers",
879
  color_discrete_sequence=speakerColors)
880
+ fig_la.update_yaxes(autorange="reversed")
881
 
882
  hMax = int(currTotalTime//3600)
883
  mMax = int(currTotalTime%3600//60)