Spaces:
Runtime error
Runtime error
Commit
•
266f954
1
Parent(s):
0d5a865
Update app.py
Browse files
app.py
CHANGED
@@ -219,7 +219,10 @@ class VideoClassifier:
|
|
219 |
def classify_video(self,video_input):
|
220 |
global classification_time , caption_time
|
221 |
# transcript=self.audio_extraction_space(video_input)
|
222 |
-
|
|
|
|
|
|
|
223 |
start_time_caption = time.time()
|
224 |
video = cv2.VideoCapture(video_input)
|
225 |
length = int(video.get(cv2.CAP_PROP_FRAME_COUNT))
|
|
|
219 |
def classify_video(self,video_input):
|
220 |
global classification_time , caption_time
|
221 |
# transcript=self.audio_extraction_space(video_input)
|
222 |
+
try:
|
223 |
+
transcript=self.audio_extraction_chatgptapi(video_input)
|
224 |
+
except :
|
225 |
+
transcript=self.audio_extraction_space(video_input)
|
226 |
start_time_caption = time.time()
|
227 |
video = cv2.VideoCapture(video_input)
|
228 |
length = int(video.get(cv2.CAP_PROP_FRAME_COUNT))
|