oarab commited on
Commit
8a7c19c
·
verified ·
1 Parent(s): 31c83d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,10 +12,10 @@ def transcribe(stream, new_chunk):
12
  y = y.astype(np.float32)
13
  y /= np.max(np.abs(y))
14
 
15
- if stream is not None:
16
- stream = np.concatenate([stream, y])
17
- else:
18
- stream = y
19
  return stream, transcriber({"sampling_rate": sr, "raw": stream})["text"]
20
 
21
 
 
12
  y = y.astype(np.float32)
13
  y /= np.max(np.abs(y))
14
 
15
+ # if stream is not None:
16
+ # stream = np.concatenate([stream, y])
17
+ # else:
18
+ stream = y
19
  return stream, transcriber({"sampling_rate": sr, "raw": stream})["text"]
20
 
21