Teapack1 commited on
Commit
9422011
1 Parent(s): 979bf55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,8 +1,14 @@
1
- import gradio as gr
2
 
3
- model_id = "sanchit-gandhi/whisper-small-dv" # update with your model id
4
  pipe = pipeline("automatic-speech-recognition", model=model_id)
5
 
 
 
 
 
 
 
6
  def transcribe_speech(filepath):
7
  output = pipe(
8
  filepath,
 
1
+ from transformers import pipeline
2
 
3
+ model_id = "Teapack1/model_KWS" # update with your model id
4
  pipe = pipeline("automatic-speech-recognition", model=model_id)
5
 
6
+ import gradio as gr
7
+
8
+ title = "Keyword Spotting Wav2Vec2"
9
+ description = "Gradio demo for finetuned Wav2Vec2 model on a custom dataset to perform keyword spotting task. Classes are scene 1, scene 2, scene 3, yes, no and stop."
10
+
11
+
12
  def transcribe_speech(filepath):
13
  output = pipe(
14
  filepath,