filipzawadka commited on
Commit
aee5752
1 Parent(s): 139a1ea
Files changed (1) hide show
  1. app.py +3 -3
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.mp4"):
110
- extract_audio("./video.mp4", "./audio.mp3")
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