Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,9 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
|
5 |
-
|
|
|
|
|
6 |
|
7 |
def transcribe(stream, new_chunk):
|
8 |
sr, y = new_chunk
|
|
|
2 |
from transformers import pipeline
|
3 |
import numpy as np
|
4 |
|
5 |
+
asr_model = "distil-whisper/distil-medium.en"
|
6 |
+
|
7 |
+
transcriber = pipeline("automatic-speech-recognition", model=asr_model)
|
8 |
|
9 |
def transcribe(stream, new_chunk):
|
10 |
sr, y = new_chunk
|