Spaces:
Runtime error
Runtime error
arjunanand13
commited on
Commit
•
63c3e64
1
Parent(s):
d5928d4
Update app.py
Browse files
app.py
CHANGED
@@ -220,13 +220,17 @@ class VideoClassifier:
|
|
220 |
global classification_time , caption_time
|
221 |
# transcript=self.audio_extraction_space(video_input)
|
222 |
try:
|
223 |
-
transcript=self.
|
224 |
-
except
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
|
|
230 |
start_time_caption = time.time()
|
231 |
video = cv2.VideoCapture(video_input)
|
232 |
length = int(video.get(cv2.CAP_PROP_FRAME_COUNT))
|
|
|
220 |
global classification_time , caption_time
|
221 |
# transcript=self.audio_extraction_space(video_input)
|
222 |
try:
|
223 |
+
transcript=self.audio_extraction(video_input)
|
224 |
+
except:
|
225 |
+
transcript=self.audio_extraction_space(video_input)
|
226 |
+
# try:
|
227 |
+
# transcript=self.audio_extraction_chatgptapi(video_input)
|
228 |
+
# except :
|
229 |
+
# print("Chatgpt Key expired , inferencing using whisper library")
|
230 |
+
# try:
|
231 |
+
# transcript=self.audio_extraction(video_input)
|
232 |
+
# except:
|
233 |
+
# transcript=self.audio_extraction_space(video_input)
|
234 |
start_time_caption = time.time()
|
235 |
video = cv2.VideoCapture(video_input)
|
236 |
length = int(video.get(cv2.CAP_PROP_FRAME_COUNT))
|