Spaces:
Runtime error
Runtime error
Commit
•
6ff007d
1
Parent(s):
0c55710
app.py
CHANGED
@@ -7,6 +7,7 @@ import os
|
|
7 |
import urllib.parse
|
8 |
from moviepy.editor import *
|
9 |
from ffmpy import FFmpeg
|
|
|
10 |
|
11 |
term = 9
|
12 |
|
@@ -110,6 +111,7 @@ def transcribe(num1,num2):
|
|
110 |
print(videos[0]['videoLink'])
|
111 |
|
112 |
if download_video(offset_time(videos[0]['videoLink'],num1,num2), "./video.mov"):
|
|
|
113 |
extract_audio("./video.mov", "./audio.mp3")
|
114 |
# Load your MP4 file
|
115 |
|
|
|
7 |
import urllib.parse
|
8 |
from moviepy.editor import *
|
9 |
from ffmpy import FFmpeg
|
10 |
+
import time
|
11 |
|
12 |
term = 9
|
13 |
|
|
|
111 |
print(videos[0]['videoLink'])
|
112 |
|
113 |
if download_video(offset_time(videos[0]['videoLink'],num1,num2), "./video.mov"):
|
114 |
+
time.sleep(2)
|
115 |
extract_audio("./video.mov", "./audio.mp3")
|
116 |
# Load your MP4 file
|
117 |
|
wget-log
CHANGED
The diff for this file is too large to render.
See raw diff
|
|