Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the ASR model using the Hugging Face pipeline
|
5 |
-
model_id = "riteshkr/whisper-large-v3-quantized"
|
6 |
pipe = pipeline("automatic-speech-recognition", model=model_id)
|
7 |
|
8 |
# Define the transcription function
|
@@ -13,7 +13,7 @@ def transcribe_speech(filepath):
|
|
13 |
generate_kwargs={
|
14 |
"task": "transcribe",
|
15 |
"language": "english",
|
16 |
-
},
|
17 |
chunk_length_s=30,
|
18 |
batch_size=8,
|
19 |
)
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the ASR model using the Hugging Face pipeline
|
5 |
+
model_id = "riteshkr/whisper-large-v3-quantized"
|
6 |
pipe = pipeline("automatic-speech-recognition", model=model_id)
|
7 |
|
8 |
# Define the transcription function
|
|
|
13 |
generate_kwargs={
|
14 |
"task": "transcribe",
|
15 |
"language": "english",
|
16 |
+
},
|
17 |
chunk_length_s=30,
|
18 |
batch_size=8,
|
19 |
)
|