r3gm commited on
Commit
26bfa39
1 Parent(s): 2b3b3fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -102,7 +102,7 @@ def translate_from_video(video, WHISPER_MODEL_SIZE, batch_size, compute_type,
102
  if device == 'cpu':
103
  # max 1 minute in cpu
104
  print('10 s. Limited for CPU ')
105
- os.system(f"ffmpeg -y -i {video} -ss 00:00:20 -t 00:00:10 -c:v libx264 -c:a aac -strict experimental Video.mp4")
106
  else:
107
  os.system(f'ffmpeg -y -i "{video}" -c:v libx264 -c:a aac -strict experimental Video.mp4')
108
 
 
102
  if device == 'cpu':
103
  # max 1 minute in cpu
104
  print('10 s. Limited for CPU ')
105
+ os.system(f'ffmpeg -y -i "{video}" -ss 00:00:20 -t 00:00:10 -c:v libx264 -c:a aac -strict experimental Video.mp4')
106
  else:
107
  os.system(f'ffmpeg -y -i "{video}" -c:v libx264 -c:a aac -strict experimental Video.mp4')
108