riteshkr commited on
Commit
5390b32
1 Parent(s): 59c621c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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" # Update with your model path or ID
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
- }, # Update the language as per your model's fine-tuning
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
  )