Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,14 @@
|
|
1 |
-
|
2 |
|
3 |
-
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,
|