Spaces:
Runtime error
Runtime error
filipzawadka
commited on
Commit
•
aee5752
1
Parent(s):
139a1ea
fix
Browse files
app.py
CHANGED
@@ -105,10 +105,10 @@ def extract_audio(video_path, audio_path):
|
|
105 |
def transcribe(num1,num2):
|
106 |
|
107 |
videos = get_sejm_videos(term)
|
|
|
108 |
|
109 |
-
if download_video(offset_time(videos[0]['videoLink'],num1,num2), "./video.
|
110 |
-
extract_audio("./video.
|
111 |
-
print("./audio.mp3")
|
112 |
return transcriber("./audio.mp3")["text"]
|
113 |
|
114 |
|
|
|
105 |
def transcribe(num1,num2):
|
106 |
|
107 |
videos = get_sejm_videos(term)
|
108 |
+
print(videos[0]['videoLink'])
|
109 |
|
110 |
+
if download_video(offset_time(videos[0]['videoLink'],num1,num2), "./video.mov"):
|
111 |
+
extract_audio("./video.mov", "./audio.mp3")
|
|
|
112 |
return transcriber("./audio.mp3")["text"]
|
113 |
|
114 |
|