Spaces:
Sleeping
Sleeping
Reduce max context to 0 for hallucination reduction
Browse files
main.py
CHANGED
@@ -46,7 +46,7 @@ def read_root(url: Url, request: Request):
|
|
46 |
subtitle_filename=os.path.join("/tmp/holosubs/tracks", requestID)
|
47 |
logging.info(f'Output will be writen to {subtitle_filename}.srt')
|
48 |
cmd=['/usr/local/bin/whisper','-m',f'/home/user/root/models/ggml-{MODEL}.bin'
|
49 |
-
,'-f',audio_filename, '-of', subtitle_filename, '-tr', '-osrt', '-
|
50 |
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
51 |
(output, err) = p.communicate()
|
52 |
p_status = p.wait()
|
|
|
46 |
subtitle_filename=os.path.join("/tmp/holosubs/tracks", requestID)
|
47 |
logging.info(f'Output will be writen to {subtitle_filename}.srt')
|
48 |
cmd=['/usr/local/bin/whisper','-m',f'/home/user/root/models/ggml-{MODEL}.bin'
|
49 |
+
,'-f',audio_filename, '-of', subtitle_filename, '-tr', '-osrt', '-mc', '0']
|
50 |
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
51 |
(output, err) = p.communicate()
|
52 |
p_status = p.wait()
|