duongthienz commited on
Commit
7273c2a
·
verified ·
1 Parent(s): 2b40665

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -876,7 +876,7 @@ try:
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
- def to_audio_datetime(s):
880
  # If already a datetime/Timestamp, extract seconds since midnight of that date
881
  if isinstance(s, (dt.datetime, pd.Timestamp)):
882
  midnight = s.replace(hour=0, minute=0, second=0, microsecond=0)
 
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
+ def to_audio_datetime(s):
880
  # If already a datetime/Timestamp, extract seconds since midnight of that date
881
  if isinstance(s, (dt.datetime, pd.Timestamp)):
882
  midnight = s.replace(hour=0, minute=0, second=0, microsecond=0)