Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update app.py
Browse files
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 |
-
|
| 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)
|