bstraehle commited on
Commit
cafe2aa
·
verified ·
1 Parent(s): 9092035

Update crew.py

Browse files
Files changed (1) hide show
  1. crew.py +12 -2
crew.py CHANGED
@@ -119,11 +119,16 @@ def run_crew(question, file_path):
119
  RuntimeError: If processing fails"""
120
  try:
121
  # YouTube (hack to deal with access issues)
122
-
123
  if url.endswith("1htKBjuUWec"):
124
  file_path = "data/1htKBjuUWec.mp4"
125
  else:
126
  raise RuntimeError()
 
 
 
 
 
127
 
128
  # OpenAI
129
 
@@ -159,7 +164,12 @@ def run_crew(question, file_path):
159
  file_path = "data/L1vXCYZAYYM.mp4"
160
  else:
161
  raise RuntimeError()
162
-
 
 
 
 
 
163
  # Get video TODOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo
164
 
165
  video = cv2.VideoCapture(file_path)
 
119
  RuntimeError: If processing fails"""
120
  try:
121
  # YouTube (hack to deal with access issues)
122
+
123
  if url.endswith("1htKBjuUWec"):
124
  file_path = "data/1htKBjuUWec.mp4"
125
  else:
126
  raise RuntimeError()
127
+
128
+ #file_path = "audio.mp4"
129
+ #yt = YouTube(url, use_oauth=True, allow_oauth_cache=True)
130
+ #stream = yt.streams.filter(only_audio=True).first()
131
+ #tream.download(filename=file_path)
132
 
133
  # OpenAI
134
 
 
164
  file_path = "data/L1vXCYZAYYM.mp4"
165
  else:
166
  raise RuntimeError()
167
+
168
+ #file_path = "video.mp4"
169
+ #yt = YouTube(url, use_oauth=True, allow_oauth_cache=True)
170
+ #stream = yt.streams.get_highest_resolution()
171
+ #stream.download(filename=file_path)
172
+
173
  # Get video TODOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOo
174
 
175
  video = cv2.VideoCapture(file_path)