Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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 |
|