KarthickAdopleAI commited on
Commit
a848e58
1 Parent(s): 53d44a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -14,7 +14,6 @@ from pytube import YouTube
14
  import requests
15
  import logging
16
  import os
17
- from huggingsound import SpeechRecognitionModel
18
  nltk.download('punkt')
19
  nltk.download('stopwords')
20
 
@@ -387,7 +386,7 @@ class VideoAnalytics:
387
  video_ = VideoFileClip(input_path)
388
  duration = video_.duration
389
  video_.close()
390
- if round(duration) <= 6*600:
391
  text = self.transcribe_video(input_path)
392
  else:
393
  return "Video Duration Above 10 Minutes,Try Below 10 Minutes Video","","",None,None,None
@@ -395,7 +394,7 @@ class VideoAnalytics:
395
  video_ = VideoFileClip(video)
396
  duration = video_.duration
397
  video_.close()
398
- if round(duration) <= 6*600:
399
  text = self.transcribe_video(video)
400
  input_path = video
401
  else:
 
14
  import requests
15
  import logging
16
  import os
 
17
  nltk.download('punkt')
18
  nltk.download('stopwords')
19
 
 
386
  video_ = VideoFileClip(input_path)
387
  duration = video_.duration
388
  video_.close()
389
+ if round(duration) <= 600:
390
  text = self.transcribe_video(input_path)
391
  else:
392
  return "Video Duration Above 10 Minutes,Try Below 10 Minutes Video","","",None,None,None
 
394
  video_ = VideoFileClip(video)
395
  duration = video_.duration
396
  video_.close()
397
+ if round(duration) <= 600:
398
  text = self.transcribe_video(video)
399
  input_path = video
400
  else: