Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def transcribir(cont, model, device):
|
|
38 |
base, ext = osp.splitext(video)
|
39 |
aac_file_out = osp.join(audio_outdir, osp.basename(base)) + ".aac"
|
40 |
os.system(f"ffmpeg -i {video} -vn -acodec copy {aac_file_out} ")
|
41 |
-
os.system(f"whisper {aac_file_out} --model {model} --language Spanish --output_dir {subtitle_outdir} --verbose False
|
42 |
f = open('./generated_subtitles/' + str(cont) + '.aac.txt','r')
|
43 |
trans = f.read()
|
44 |
transcripcion = (trans.split('\n'))[0]
|
|
|
38 |
base, ext = osp.splitext(video)
|
39 |
aac_file_out = osp.join(audio_outdir, osp.basename(base)) + ".aac"
|
40 |
os.system(f"ffmpeg -i {video} -vn -acodec copy {aac_file_out} ")
|
41 |
+
os.system(f"whisper {aac_file_out} --model {model} --language Spanish --output_dir {subtitle_outdir} --verbose False ")
|
42 |
f = open('./generated_subtitles/' + str(cont) + '.aac.txt','r')
|
43 |
trans = f.read()
|
44 |
transcripcion = (trans.split('\n'))[0]
|