cerkut commited on
Commit
ae4beac
·
verified ·
1 Parent(s): fc809a6

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +1 -1
run.py CHANGED
@@ -7,7 +7,7 @@ transcriber = pipeline("automatic-speech-recognition", model="openai/whisper-bas
7
  def transcribe(stream, new_chunk):
8
  sr, y = new_chunk
9
  y = y.astype(np.float32)
10
- y /= np.max(np.abs(y))
11
 
12
  if stream is not None:
13
  stream = np.concatenate([stream, y])
 
7
  def transcribe(stream, new_chunk):
8
  sr, y = new_chunk
9
  y = y.astype(np.float32)
10
+ # y /= np.max(np.abs(y))
11
 
12
  if stream is not None:
13
  stream = np.concatenate([stream, y])