teoha commited on
Commit
4ffbed1
·
1 Parent(s): 2bd44dd

Reduce max context to 0 for hallucination reduction

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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', '-t', '8']
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()