Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,12 +13,12 @@ def load_video_yt(vid):
|
|
13 |
return f"{uid}-tmp.mp4"
|
14 |
|
15 |
def trim_vid(vid,start_time,end_time):
|
16 |
-
start_hr=int(start_time.split
|
17 |
-
start_min=int(start_time.split
|
18 |
-
start_sec=int(start_time.split
|
19 |
-
end_hr=int(start_time.split
|
20 |
-
end_min=int(start_time.split
|
21 |
-
end_sec=int(start_time.split
|
22 |
start=start_hr+start_min+start_sec
|
23 |
end=end_hr+end_min+end_sec
|
24 |
#vid = f"{uid}-tmp.mp4"
|
|
|
13 |
return f"{uid}-tmp.mp4"
|
14 |
|
15 |
def trim_vid(vid,start_time,end_time):
|
16 |
+
start_hr=int(start_time.split(":",2)[0])*360
|
17 |
+
start_min=int(start_time.split(":",2)[1])*60
|
18 |
+
start_sec=int(start_time.split(":",2)[2])
|
19 |
+
end_hr=int(start_time.split(":",2)[0])*360
|
20 |
+
end_min=int(start_time.split(":",2)[1])*60
|
21 |
+
end_sec=int(start_time.split(":",2)[2])
|
22 |
start=start_hr+start_min+start_sec
|
23 |
end=end_hr+end_min+end_sec
|
24 |
#vid = f"{uid}-tmp.mp4"
|