Spaces:
Runtime error
Runtime error
Update run.py
Browse files
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 |
-
|
| 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 /= 16777216.0
|
| 11 |
|
| 12 |
if stream is not None:
|
| 13 |
stream = np.concatenate([stream, y])
|